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