blob: 824e39e4056b5cae269cf0cd48b1414058d499f8 [file] [log] [blame] [edit]
//@ edition:2015
// 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
}