12 lines
141 B
Rust
12 lines
141 B
Rust
|
// xfail-test it don't work yet
|
||
|
|
||
|
fn foo(x: &uint) -> uint {
|
||
|
*x
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let p = @3u;
|
||
|
let r = foo(p);
|
||
|
assert r == 3u;
|
||
|
}
|