]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0658]: comparing raw pointers inside static (see issue #53020) |
9fa01778 | 2 | --> $DIR/E0395.rs:6:29 |
2c00a5a8 | 3 | | |
9fa01778 XL |
4 | LL | static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR issue #53020 |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
6 | | |
7 | = help: add #![feature(const_compare_raw_pointers)] to the crate attributes to enable | |
2c00a5a8 XL |
8 | |
9 | error: aborting due to previous error | |
10 | ||
b7449926 | 11 | For more information about this error, try `rustc --explain E0658`. |