restore a test

This commit is contained in:
Ralf Jung 2022-06-05 12:00:43 -04:00
parent 4322a785cc
commit e5dd503d61

View File

@ -3,5 +3,6 @@ struct Lorem {
}
fn main() {
let _foo: *mut Lorem = core::ptr::NonNull::dangling().as_ptr(); // no error here
// Testing `as` casts, so deliberately not using `ptr::null`.
let _foo: *mut Lorem = 0 as *mut _; // no error here
}