2020-11-17 04:44:21 -06:00
|
|
|
error: generic parameters may not be used in const operations
|
|
|
|
--> $DIR/issue-70453-generics-in-discr-ice.rs:10:32
|
2020-04-05 16:14:52 -05:00
|
|
|
|
|
|
|
|
LL | Some = std::mem::size_of::<T>(),
|
2020-11-17 04:44:21 -06:00
|
|
|
| ^ cannot perform const operation using `T`
|
2020-04-05 16:14:52 -05:00
|
|
|
|
|
2020-11-17 04:44:21 -06:00
|
|
|
= note: type parameters may not be used in const expressions
|
2021-08-27 11:04:57 -05:00
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-04-05 16:14:52 -05:00
|
|
|
|
|
|
|
error[E0392]: parameter `T` is never used
|
|
|
|
--> $DIR/issue-70453-generics-in-discr-ice.rs:7:20
|
|
|
|
|
|
|
|
|
LL | enum MyWeirdOption<T> {
|
|
|
|
| ^ unused parameter
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
2021-04-30 23:39:50 -05:00
|
|
|
= help: if you intended `T` to be a const parameter, use `const T: usize` instead
|
2020-04-05 16:14:52 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0392`.
|