fn f() {} fn main() { let x: i32 = unsafe { *std::mem::transmute::(f) //~ ERROR constant evaluation error //~^ NOTE tried to dereference a function pointer }; panic!("this should never print: {}", x); }