rustc/tests/ui/impl-trait/extra-impl-in-trait-impl.fixed
2024-05-08 17:27:53 +02:00

20 lines
358 B
Plaintext

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