fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3struct S<T>(T); 4struct S2; 5 6impl<T: Default> Default for S<T> { 7 //~^ ERROR: unexpected `impl` keyword 8 //~| HELP: remove the extra `impl` 9 fn default() -> Self { todo!() } 10} 11 12impl Default for S2 { 13 //~^ ERROR: unexpected `impl` keyword 14 //~| HELP: remove the extra `impl` 15 fn default() -> Self { todo!() } 16} 17 18 19fn main() {}