6 lines
204 B
Rust
6 lines
204 B
Rust
fn main() {
|
|
let x = &() as *const () as *const i32;
|
|
let _ = unsafe { *x }; //~ ERROR constant evaluation error
|
|
//~^ NOTE tried to access memory with alignment 1, but alignment 4 is required
|
|
}
|