1 // Validation makes this fail in the wrong place
2 // compile-flags: -Zmir-emit-validate=0
4 #![feature(box_syntax)]
9 let f = std::mem::transmute::<Box<i32>, fn()>(x);
10 f() //~ ERROR constant evaluation error
11 //~^ NOTE tried to treat a memory pointer as a function pointer