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

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

23 lines
573 B
Plaintext
Raw Normal View History

2020-01-13 22:30:34 -06:00
error: inherent impls cannot be `const`
2021-08-25 10:21:55 -05:00
--> $DIR/inherent-impl.rs:7:12
2020-01-13 22:30:34 -06:00
|
LL | impl const S {}
2020-03-05 17:39:35 -06:00
| ----- ^ inherent impl for this type
| |
| `const` because of this
2020-01-13 22:30:34 -06:00
|
= note: only trait implementations may be annotated with `const`
error: inherent impls cannot be `const`
2021-08-25 10:21:55 -05:00
--> $DIR/inherent-impl.rs:10:12
2020-01-02 18:31:30 -06:00
|
LL | impl const T {}
2020-03-05 17:39:35 -06:00
| ----- ^ inherent impl for this type
| |
| `const` because of this
2020-01-13 22:30:34 -06:00
|
= note: only trait implementations may be annotated with `const`
error: aborting due to 2 previous errors
2020-01-02 18:31:30 -06:00