2024-02-16 14:02:50 -06:00
|
|
|
//@ run-rustfix
|
2023-05-11 14:55:50 -05:00
|
|
|
|
|
|
|
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() {}
|