]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr
Auto merge of #80005 - ssomers:btree_cleanup_3, r=Mark-Simulacrum
[rust.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: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 | impl const Foo for i32 {}
10    |--    ^^^^^
11
12 error: expected identifier, found keyword `impl`
13   --> $DIR/const-impl-recovery.rs:10:7
14    |
15 LL | const impl<T: Foo> Bar for T {}
16    |       ^^^^ expected identifier, found keyword
17    |
18 help: you might have meant to write a const trait impl
19    |
20 LL | impl<T: Foo> const Bar for T {}
21    |--            ^^^^^
22
23 error: aborting due to 2 previous errors
24