2023-05-05 21:42:51 +01:00
|
|
|
error: generic parameters may not be used in enum discriminant values
|
2022-11-19 22:11:00 +01:00
|
|
|
--> $DIR/issue-67945-2.rs:4:28
|
2020-05-07 02:14:05 +09:00
|
|
|
|
|
2022-11-19 22:11:00 +01:00
|
|
|
LL | Var = type_ascribe!(0, S),
|
|
|
|
| ^ cannot perform const operation using `S`
|
2020-05-07 02:14:05 +09:00
|
|
|
|
|
2023-05-05 21:42:51 +01:00
|
|
|
= note: type parameters may not be used in enum discriminant values
|
2020-05-07 02:14:05 +09:00
|
|
|
|
2024-02-01 15:58:07 +01:00
|
|
|
error[E0392]: type parameter `S` is never used
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/issue-67945-2.rs:3:10
|
2020-05-07 02:14:05 +09:00
|
|
|
|
|
|
|
|
LL | enum Bug<S> {
|
2024-02-01 15:58:07 +01:00
|
|
|
| ^ unused type parameter
|
2020-05-07 02:14:05 +09:00
|
|
|
|
|
2020-11-17 11:44:21 +01:00
|
|
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
|
2024-02-01 15:58:07 +01:00
|
|
|
= help: if you intended `S` to be a const parameter, use `const S: /* Type */` instead
|
2020-05-07 02:14:05 +09:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2020-11-17 11:44:21 +01:00
|
|
|
For more information about this error, try `rustc --explain E0392`.
|