//@ run-rustfix struct S(T); struct S2; impl impl Default for S { //~^ ERROR: unexpected `impl` keyword //~| HELP: remove the extra `impl` fn default() -> Self { todo!() } } impl impl Default for S2 { //~^ ERROR: unexpected `impl` keyword //~| HELP: remove the extra `impl` fn default() -> Self { todo!() } } fn main() {}