summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0395.stderr
blob: a4580f1cb23420bce4e483d3080d982bbde2c506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0658]: comparing raw pointers inside static
  --> $DIR/E0395.rs:6:29
   |
LL | static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) };
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/53020
   = help: add `#![feature(const_compare_raw_pointers)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.