]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / const-impl-recovery.stderr
1 error: expected identifier, found keyword `impl`
2 --> $DIR/const-impl-recovery.rs:5: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:9: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