pub const fn null_mut<T>() -> *mut Twhere
T: Thin + ?Sized,
Available on non-crate feature
miri-test-libstd
only.Expand description
Creates a null mutable raw pointer.
Examples
use std::ptr;
let p: *mut i32 = ptr::null_mut();
assert!(p.is_null());