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