blob: bbefff27d7f683873ed1421c9b707cf02a1c7276 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// gate-test-const_compare_raw_pointers
static FOO: i32 = 42;
static BAR: i32 = 42;
static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) };
//~^ ERROR comparing raw pointers inside static
fn main() {
}
|