5 lines
131 B
Rust
5 lines
131 B
Rust
|
|
fn main() {
|
||
|
|
let x = &() as *const () as *const i32;
|
||
|
|
let _ = unsafe { *x }; //~ ERROR: tried to access the ZST allocation
|
||
|
|
}
|