]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | error: generic parameters may not be used in const operations |
2 | --> $DIR/issue-70453-generics-in-discr-ice-2.rs:9:35 | |
f9f354fc XL |
3 | | |
4 | LL | Some(T) = std::mem::size_of::<T>(), | |
5869c6ff | 5 | | ^ cannot perform const operation using `T` |
f9f354fc | 6 | | |
5869c6ff XL |
7 | = note: type parameters may not be used in const expressions |
8 | = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions | |
f9f354fc XL |
9 | |
10 | error: aborting due to previous error | |
11 |