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