mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-22 20:47:48 +00:00
5 lines
165 B
Rust
5 lines
165 B
Rust
fn main() {
|
|
let x = &() as *const () as *const i32;
|
|
let _ = unsafe { *x }; //~ ERROR: tried to access memory with alignment 1, but alignment 4 is required
|
|
}
|