1 error: expected identifier, found keyword `impl`
2 --> $DIR/const-impl-recovery.rs:6:7
4 LL | const impl Foo for i32 {}
5 | ^^^^ expected identifier, found keyword
7 help: you might have meant to write a const trait impl
9 LL | impl const Foo for i32 {}
12 error: expected identifier, found keyword `impl`
13 --> $DIR/const-impl-recovery.rs:10:7
15 LL | const impl<T: Foo> Bar for T {}
16 | ^^^^ expected identifier, found keyword
18 help: you might have meant to write a const trait impl
20 LL | impl<T: Foo> const Bar for T {}
23 error: aborting due to 2 previous errors