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