2020-01-13 22:30:34 -06:00
|
|
|
error: inherent impls cannot be `const`
|
2020-03-04 18:15:23 -06:00
|
|
|
--> $DIR/inherent-impl.rs:9:6
|
2020-01-13 22:30:34 -06:00
|
|
|
|
|
|
|
|
LL | impl const S {}
|
2020-03-04 18:15:23 -06:00
|
|
|
| ^^^^^ ^ inherent impl for this type
|
2020-01-29 19:42:33 -06:00
|
|
|
| |
|
|
|
|
| `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`
|
2020-03-04 18:15:23 -06:00
|
|
|
--> $DIR/inherent-impl.rs:12:6
|
2020-01-02 18:31:30 -06:00
|
|
|
|
|
|
|
|
LL | impl const T {}
|
2020-03-04 18:15:23 -06:00
|
|
|
| ^^^^^ ^ inherent impl for this type
|
2020-01-29 19:42:33 -06:00
|
|
|
| |
|
|
|
|
| `const` because of this
|
2020-01-13 22:30:34 -06:00
|
|
|
|
|
|
|
|
= note: only trait implementations may be annotated with `const`
|
|
|
|
|
2020-02-04 16:03:37 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2020-01-02 18:31:30 -06:00
|
|
|
|