1 // Validation makes this fail in the wrong place
2 // compile-flags: -Zmir-emit-validate=0
10 let y : *mut u8 = unsafe { mem::transmute(x) };
11 let y = y.wrapping_offset(1);
12 let x : fn() = unsafe { mem::transmute(y) };
13 x(); //~ ERROR: tried to use a function pointer after offsetting it