blob: f8af43ff3529c7794ed4a3b5d0e0af5a572cf851 [file] [log] [blame]
#[allow(deref_nullptr)]
fn main() {
let x: () = unsafe { *std::ptr::null() }; //~ ERROR: memory access failed: null pointer is a dangling pointer
panic!("this should never print: {:?}", x);
}