1 2 3 4 5 6 7 8 9 10 11 12 13
// run-rustfix pub mod a { pub use self::b::Trait; mod b { pub trait Trait {} } } struct S; impl a::Trait for S {} //~ ERROR module `b` is private fn main() {}