rust/src/test/run-pass/unsafe-pointer-assignability.rs

13 lines
90 B
Rust
Raw Normal View History

fn f(x: *int) {
unsafe {
assert *x == 3;
}
}
fn main() {
f(&3);
}