mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
5 lines
166 B
Rust
5 lines
166 B
Rust
fn main() {
|
|
let x: i32 = unsafe { *std::ptr::null() }; //~ ERROR inbounds test failed: 0x0 is not a valid pointer
|
|
panic!("this should never print: {}", x);
|
|
}
|