rust/src/test/run-pass/regions-borrow-at.rs

12 lines
141 B
Rust
Raw Normal View History

2012-04-13 15:36:39 -05:00
// 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;
}