gcc/testsuite/rust/compile/pub_restricted_1.rs
raw| 1 | pub mod foo { |
| 2 | pub mod bar { |
| 3 | pub fn baz() {} |
| 4 | |
| 5 | pub(in foo::bar) struct A0; |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | pub(in foo::fah::baz) struct A1; // { dg-error "cannot find simple path segment .fah." } |
| 10 | pub(in fro::bulator::saindoux) struct A2; // { dg-error "cannot find simple path segment .fro." } |
| 11 | pub(in foo::bar::saindoux) struct A3; // { dg-error "cannot find simple path segment .saindoux." } |
| 12 | |
| 13 | fn main() {} |