1 error: expected identifier, found keyword `impl`
2 --> $DIR/const-impl-recovery.rs:5: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 - const impl Foo for i32 {}
10 LL + impl const Foo for i32 {}
13 error: expected identifier, found keyword `impl`
14 --> $DIR/const-impl-recovery.rs:9:7
16 LL | const impl<T: Foo> Bar for T {}
17 | ^^^^ expected identifier, found keyword
19 help: you might have meant to write a const trait impl
21 LL - const impl<T: Foo> Bar for T {}
22 LL + impl<T: Foo> const Bar for T {}
25 error: aborting due to 2 previous errors