2018-08-03 13:27:35 +02:00
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
// unconst and bad, will thus error in miri
|
2023-04-16 11:12:37 +00:00
|
|
|
const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 }; //~ ERROR pointers cannot
|
2018-08-03 13:27:35 +02:00
|
|
|
// unconst and bad, will thus error in miri
|
2023-04-16 11:12:37 +00:00
|
|
|
const X2: bool = unsafe { 42 as *const i32 == 43 as *const i32 }; //~ ERROR pointers cannot
|