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