rust/src/test/run-pass/borrowck-move-from-unsafe-ptr-ok.rs
2012-08-01 19:16:06 -07:00

11 lines
135 B
Rust

// just make sure this compiles:
fn bar(x: *~int) -> ~int {
unsafe {
let y <- *x;
return y;
}
}
fn main() {
}