2020-12-03 12:37:19 -06:00
|
|
|
error: expected identifier, found keyword `impl`
|
2021-07-15 22:54:00 -05:00
|
|
|
--> $DIR/const-impl-recovery.rs:5:7
|
2020-12-03 12:37:19 -06:00
|
|
|
|
|
|
|
|
LL | const impl Foo for i32 {}
|
|
|
|
| ^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
help: you might have meant to write a const trait impl
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - const impl Foo for i32 {}
|
|
|
|
LL + impl const Foo for i32 {}
|
|
|
|
|
|
2020-12-03 12:37:19 -06:00
|
|
|
|
|
|
|
error: expected identifier, found keyword `impl`
|
2021-07-15 22:54:00 -05:00
|
|
|
--> $DIR/const-impl-recovery.rs:9:7
|
2020-12-03 12:37:19 -06:00
|
|
|
|
|
|
|
|
LL | const impl<T: Foo> Bar for T {}
|
|
|
|
| ^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
help: you might have meant to write a const trait impl
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - const impl<T: Foo> Bar for T {}
|
|
|
|
LL + impl<T: Foo> const Bar for T {}
|
|
|
|
|
|
2020-12-03 12:37:19 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|