rust/src/test/run-pass/borrowck-move-from-unsafe-ptr-ok.rs

11 lines
132 B
Rust
Raw Normal View History

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