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