summary refs log tree commit diff
path: root/src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr
blob: 906927e705ee8cbb75212d6f0fc4cf9e310bede6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
warning: cannot use constants which depend on generic parameters in types
  --> $DIR/issue-70453-polymorphic-ctfe.rs:10:15
   |
LL |     Some(T) = core::mem::size_of::<*mut T>(),
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(const_evaluatable_unchecked)]` on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>

warning: 1 warning emitted