]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / enum-discriminant / issue-70453-polymorphic-ctfe.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/issue-70453-polymorphic-ctfe.rs:9:41
3    |
4 LL |     Some(T) = core::mem::size_of::<*mut T>(),
5    |                                         ^ cannot perform const operation using `T`
6    |
7    = note: type parameters may not be used in const expressions
8    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10 error: aborting due to previous error
11