mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-30 08:33:25 +00:00
7 lines
285 B
Rust
7 lines
285 B
Rust
fn main() {}
|
|
|
|
// unconst and bad, will thus error in miri
|
|
const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 }; //~ ERROR pointers cannot
|
|
// unconst and bad, will thus error in miri
|
|
const X2: bool = unsafe { 42 as *const i32 == 43 as *const i32 }; //~ ERROR pointers cannot
|