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 13:27:35 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03: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 13:27:35 +02: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 13:27:35 +02: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-25 00:06:47 +02: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 13:27:35 +02: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 13:27:35 +02:00
|
|
|
|
2020-06-12 19:25:14 +02:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-03 13:27:35 +02:00
|
|
|
|