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

9 lines
119 B
Rust
Raw Normal View History

2012-04-11 15:10:35 -05:00
// xfail-test
fn foo(x: &uint) -> &uint { x }
fn main() {
let p = @3u;
let r = foo(p);
assert *p == *r;
}