#![feature(box_syntax)] fn main() { let x = box 42; unsafe { let f = std::mem::transmute::, fn()>(x); //~^ ERROR: tried to treat a memory pointer as a function pointer f() } }