1 // Validation makes this fail in the wrong place
2 // compile-flags: -Zmir-emit-validate=0
6 std::mem::transmute::<usize, fn(i32)>(42)
9 g(42) //~ ERROR constant evaluation error
10 //~^ NOTE a memory access tried to interpret some bytes as a pointer