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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
675 B
Plaintext
Raw Normal View History

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