]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / rfc-2632-const-trait-impl / const-impl-recovery.stderr
1 error: expected identifier, found keyword `impl`
2   --> $DIR/const-impl-recovery.rs:6:7
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    |
9 LL - const impl Foo for i32 {}
10 LL + impl const Foo for i32 {}
11    |
12
13 error: expected identifier, found keyword `impl`
14   --> $DIR/const-impl-recovery.rs:11:7
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    |
21 LL - const impl<T: Foo> Bar for T {}
22 LL + impl<T: Foo> const Bar for T {}
23    |
24
25 error: aborting due to 2 previous errors
26