trait Foo {} impl Foo for String {} //~^ ERROR associated item constraints are not allowed here //~| HELP declare the type parameter right after the `impl` keyword impl Foo for u8 {} //~^ ERROR associated item constraints are not allowed here //~| HELP declare the type parameter right after the `impl` keyword //~| ERROR use of undeclared lifetime name `'a` //~| HELP consider introducing lifetime `'a` here impl Foo for u16 {} //~^ ERROR associated item constraints are not allowed here //~| HELP declare the type parameter right after the `impl` keyword impl<'a> Foo for u32 {} //~^ ERROR associated item constraints are not allowed here //~| HELP declare the type parameter right after the `impl` keyword trait Bar {} impl Bar for String {} //~^ ERROR associated item constraints are not allowed here //~| HELP declare the type parameter right after the `impl` keyword impl Bar for u8 {} //~^ ERROR trait takes 2 generic arguments but 1 generic argument was supplied //~| HELP add missing generic argument //~| ERROR associated item constraints are not allowed here //~| HELP declare the type parameter right after the `impl` keyword fn main() {}