1 // Validation makes this fail in the wrong place
2 // compile-flags: -Zmiri-disable-validation
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 function pointer but it does not point to a function