rust/src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr

27 lines
676 B
Plaintext
Raw Normal View History

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
|
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
|
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