]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / const-impl-recovery.stderr
CommitLineData
fc512014 1error: expected identifier, found keyword `impl`
136023e0 2 --> $DIR/const-impl-recovery.rs:5:7
fc512014
XL
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 |
94222f64
XL
9LL - const impl Foo for i32 {}
10LL + impl const Foo for i32 {}
923072b8 11 |
fc512014
XL
12
13error: expected identifier, found keyword `impl`
136023e0 14 --> $DIR/const-impl-recovery.rs:9:7
fc512014
XL
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 |
94222f64
XL
21LL - const impl<T: Foo> Bar for T {}
22LL + impl<T: Foo> const Bar for T {}
923072b8 23 |
fc512014
XL
24
25error: aborting due to 2 previous errors
26