2020-11-17 04:44:21 -06:00
|
|
|
error: generic parameters may not be used in const operations
|
|
|
|
--> $DIR/issue-67945-2.rs:4:14
|
2020-05-06 12:14:05 -05:00
|
|
|
|
|
|
|
|
LL | Var = 0: S,
|
2020-11-17 04:44:21 -06:00
|
|
|
| ^ cannot perform const operation using `S`
|
2020-05-06 12:14:05 -05:00
|
|
|
|
|
2020-11-17 04:44:21 -06:00
|
|
|
= note: type parameters may not be used in const expressions
|
|
|
|
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
|
2020-05-06 12:14:05 -05:00
|
|
|
|
2020-11-17 04:44:21 -06:00
|
|
|
error[E0392]: parameter `S` is never used
|
|
|
|
--> $DIR/issue-67945-2.rs:3:10
|
2020-05-06 12:14:05 -05:00
|
|
|
|
|
|
|
|
LL | enum Bug<S> {
|
2020-11-17 04:44:21 -06:00
|
|
|
| ^ unused parameter
|
2020-05-06 12:14:05 -05:00
|
|
|
|
|
2020-11-17 04:44:21 -06:00
|
|
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
|
2020-05-06 12:14:05 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2020-11-17 04:44:21 -06:00
|
|
|
For more information about this error, try `rustc --explain E0392`.
|