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