7 lines
104 B
Rust
7 lines
104 B
Rust
|
fn foo(x: &uint) -> &uint { x }
|
||
|
|
||
|
fn main() {
|
||
|
let p = @3u;
|
||
|
let r = foo(p);
|
||
|
assert *p == *r;
|
||
|
}
|