(root)/
gcc-13.2.0/
gcc/
testsuite/
rust/
compile/
pub_restricted_1.rs
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() {}