// error-pattern: inbounds test failed: 0x4 is not a valid pointer use std::ptr::NonNull; fn main() { unsafe { let ptr = NonNull::::dangling(); Box::from_raw(ptr.as_ptr()); } }