mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
11 lines
406 B
Plaintext
11 lines
406 B
Plaintext
error: pointers cannot be reliably compared during const eval
|
|
--> $DIR/issue-25826.rs:3:30
|
|
|
|
|
LL | const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
|
|
|
|
error: aborting due to previous error
|
|
|