2018-08-03 13:27:35 +02:00
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
|
|
// unconst and bad, will thus error in miri
|
2022-07-25 08:17:00 +00:00
|
|
|
const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 }; //~ ERROR can't compare
|
2018-08-03 13:27:35 +02:00
|
|
|
// unconst and bad, will thus error in miri
|
2022-07-25 08:17:00 +00:00
|
|
|
const X2: bool = unsafe { 42 as *const i32 == 43 as *const i32 }; //~ ERROR can't compare
|