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