1
Fork 0
rust/src/test/ui/raw-ref-op/raw-ref-op.rs

14 lines
361 B
Rust
Raw Normal View History

2019-11-23 14:22:30 +00:00
// 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 ); }
}