mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
5 lines
146 B
Rust
5 lines
146 B
Rust
fn main() {
|
|
let x: () = unsafe { *std::ptr::null() }; //~ ERROR invalid use of NULL pointer
|
|
panic!("this should never print: {:?}", x);
|
|
}
|