1 // issue-49296: Unsafe shenigans in constants can result in missing errors
3 #![feature(const_fn_trait_bound)]
5 use std::mem::transmute;
7 const fn wat(x: u64) -> &'static u64 {
8 unsafe { transmute(&x) }
11 const X: u64 = *wat(42);
12 //~^ ERROR evaluation of constant value failed