5 lines
148 B
Rust
5 lines
148 B
Rust
#[allow(deref_nullptr)]
|
|
fn main() {
|
|
unsafe { *std::ptr::null_mut() = 0i32 }; //~ ERROR null pointer is not a valid pointer for this operation
|
|
}
|