fork/rust

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

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

master
675 B26 linesraw
1error: expected identifier, found keyword `impl`
2  --> $DIR/const-impl-recovery.rs:6:7
3   |
4LL | const impl Foo for i32 {}
5   |       ^^^^ expected identifier, found keyword
6   |
7help: you might have meant to write a const trait impl
8   |
9LL - const impl Foo for i32 {}
10LL + impl const Foo for i32 {}
11   |
12
13error: expected identifier, found keyword `impl`
14  --> $DIR/const-impl-recovery.rs:11:7
15   |
16LL | const impl<T: Foo> Bar for T {}
17   |       ^^^^ expected identifier, found keyword
18   |
19help: you might have meant to write a const trait impl
20   |
21LL - const impl<T: Foo> Bar for T {}
22LL + impl<T: Foo> const Bar for T {}
23   |
24
25error: aborting due to 2 previous errors
26