summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/pub_restricted_1.rs
blob: 9bda9682403238c7d5ed528d95c806badd81a68f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod foo {
    pub mod bar {
        pub fn baz() {}

        pub(in foo::bar) struct A0;
    }
}

pub(in foo::fah::baz) struct A1; // { dg-error "cannot find simple path segment .fah." }
pub(in fro::bulator::saindoux) struct A2; // { dg-error "cannot find simple path segment .fro." }
pub(in foo::bar::saindoux) struct A3; // { dg-error "cannot find simple path segment .saindoux." }

fn main() {}