2023-04-16 11:12:37 +00:00
|
|
|
error: pointers cannot be reliably compared during const eval
|
|
|
|
--> $DIR/const_raw_ptr_ops.rs:4:26
|
2018-08-03 11:27:35 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 };
|
2023-04-16 11:12:37 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-03 11:27:35 +00:00
|
|
|
|
|
2023-04-16 11:12:37 +00:00
|
|
|
= note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
|
2018-08-03 11:27:35 +00:00
|
|
|
|
2023-04-16 11:12:37 +00:00
|
|
|
error: pointers cannot be reliably compared during const eval
|
|
|
|
--> $DIR/const_raw_ptr_ops.rs:6:27
|
2019-07-24 22:06:47 +00:00
|
|
|
|
|
|
|
|
LL | const X2: bool = unsafe { 42 as *const i32 == 43 as *const i32 };
|
2023-04-16 11:12:37 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-03 11:27:35 +00:00
|
|
|
|
|
2023-04-16 11:12:37 +00:00
|
|
|
= note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
|
2018-08-03 11:27:35 +00:00
|
|
|
|
2020-06-12 17:25:14 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-03 11:27:35 +00:00
|
|
|
|