2020-11-17 10:44:21 +00:00
|
|
|
error: generic parameters may not be used in const operations
|
|
|
|
--> $DIR/issue-67945-1.rs:3:16
|
2020-05-06 17:14:05 +00:00
|
|
|
|
|
|
|
|
LL | let x: S = 0;
|
2020-11-17 10:44:21 +00:00
|
|
|
| ^ cannot perform const operation using `S`
|
|
|
|
|
|
|
|
|
= note: type parameters may not be used in const expressions
|
2021-08-27 16:04:57 +00:00
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-11-17 10:44:21 +00:00
|
|
|
|
|
|
|
error[E0392]: parameter `S` is never used
|
|
|
|
--> $DIR/issue-67945-1.rs:1:10
|
|
|
|
|
|
|
|
|
LL | enum Bug<S> {
|
|
|
|
| ^ unused parameter
|
2020-05-06 17:14:05 +00:00
|
|
|
|
|
2020-11-17 10:44:21 +00:00
|
|
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
|
2021-05-01 04:39:50 +00:00
|
|
|
= help: if you intended `S` to be a const parameter, use `const S: usize` instead
|
2020-05-06 17:14:05 +00:00
|
|
|
|
2020-11-17 10:44:21 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2020-05-06 17:14:05 +00:00
|
|
|
|
2020-11-17 10:44:21 +00:00
|
|
|
For more information about this error, try `rustc --explain E0392`.
|