1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Test that methods from shadowed traits cannot be used mod foo { pub trait T { fn f(&self) {} } impl T for () {} } mod bar { pub use crate::foo::T; } fn main() { pub use bar::*; struct T; ().f() //~ ERROR no method }