about summary refs log tree commit diff
path: root/tests/ui/consts/issue-25826.stderr
blob: 7d21020da6477bc9eb63d8e6783779f9a012b25c (plain)
1
2
3
4
5
6
7
8
9
10
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 1 previous error