use std::convert::TryInto; trait A { fn foo() {} } trait B { fn bar() {} } struct S; impl A for S {} impl B for S {} fn main() { let _ = A::foo::(); //~^ ERROR //~| HELP remove these generics //~| HELP consider moving this generic argument let _ = B::bar::(); //~^ ERROR //~| HELP remove these generics //~| HELP consider moving these generic arguments let _ = A::::foo::(); //~^ ERROR //~| HELP remove these generics let _ = 42.into::>(); //~^ ERROR //~| HELP remove these generics //~| HELP consider moving this generic argument }