1 #![feature(custom_attribute, box_syntax)]
2 #![allow(dead_code, unused_attributes)]
6 //FIXME: this span is wrong
7 let x = box 42; //~ ERROR: tried to treat a memory pointer as a function pointer
9 let f = std::mem::transmute::<Box<i32>, fn()>(x);