summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0395.stderr
blob: ea17e95a719affe5459868910029d459b388a771 (plain)
1
2
3
4
5
6
7
8
9
10
error: pointers cannot be reliably compared during const eval
  --> $DIR/E0395.rs:4:29
   |
LL | static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) };
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information

error: aborting due to previous error