mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
5 lines
128 B
Rust
5 lines
128 B
Rust
#[allow(deref_nullptr)]
|
|
fn main() {
|
|
unsafe { *std::ptr::null_mut() = 0i32 }; //~ ERROR null pointer is a dangling pointer
|
|
}
|