fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
358 B19 linesraw
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() {}