2020-12-03 12:37:19 -06:00
|
|
|
error: expected identifier, found keyword `impl`
|
2022-08-28 01:27:31 -05:00
|
|
|
--> $DIR/const-impl-recovery.rs:6: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 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-12-03 12:37:19 -06:00
|
|
|
|
|
|
|
error: expected identifier, found keyword `impl`
|
2022-08-28 01:27:31 -05:00
|
|
|
--> $DIR/const-impl-recovery.rs:11: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 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-12-03 12:37:19 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|