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 the unnecessary generics //~| HELP consider moving this generic argument let _ = B::bar::(); //~^ ERROR //~| HELP remove the unnecessary generics //~| HELP consider moving these generic arguments let _ = A::::foo::(); //~^ ERROR //~| HELP remove the unnecessary generics let _ = 42.into::>(); //~^ ERROR //~| HELP remove the unnecessary generics //~| HELP consider moving this generic argument }