blob: de847909eb3712a1a6164d346aafe1c02b96c631 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// FIXME(#64490): make this run-pass
#![feature(raw_ref_op)]
fn main() {
let mut x = 123;
let c_p = &raw const x; //~ ERROR not yet implemented
let m_p = &raw mut x; //~ ERROR not yet implemented
let i_r = &x;
assert!(c_p == i_r);
assert!(c_p == m_p);
unsafe { assert!(*c_p == *i_r ); }
}
|