1 2 3 4 5 6 7 8
fn f() {} fn main() { let x: u8 = unsafe { *std::mem::transmute::<fn(), *const u8>(f) //~ ERROR: contains a function }; panic!("this should never print: {}", x); }