pub trait Foo { fn foo(&self); } pub trait Bar { fn foo(&self); } fn main() { let a = Foo::lol(); //~^ ERROR no function or associated item named let b = Foo::<_>::lol(); //~^ ERROR no function or associated item named let c = Bar::lol(); //~^ ERROR no function or associated item named let d = Bar::::lol(); //~^ ERROR no function or associated item named let e = Bar::::lol(); //~^ ERROR must be explicitly specified }