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

39 lines
868 B
Plaintext
Raw Normal View History

2020-01-13 22:30:34 -06:00
error: inherent impls cannot be `const`
--> $DIR/inherent-impl.rs:9:1
|
LL | impl const S {}
| ^^^^^-----^^^^^
| |
| `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`
--> $DIR/inherent-impl.rs:13:1
2020-01-02 18:31:30 -06:00
|
LL | impl const T {}
| ^^^^^-----^^^^^
| |
| `const` because of this
2020-01-13 22:30:34 -06:00
|
= note: only trait implementations may be annotated with `const`
error: const trait impls are not yet implemented
--> $DIR/inherent-impl.rs:9:1
|
LL | impl const S {}
| ^^^^^-----^^^^^
| |
| const because of this
2020-01-13 22:30:34 -06:00
error: const trait impls are not yet implemented
--> $DIR/inherent-impl.rs:13:1
2020-01-02 18:31:30 -06:00
|
2020-01-13 22:30:34 -06:00
LL | impl const T {}
| ^^^^^-----^^^^^
| |
| const because of this
2020-01-02 18:31:30 -06:00
2020-01-13 22:30:34 -06:00
error: aborting due to 4 previous errors
2020-01-02 18:31:30 -06:00