rust/src/test/run-pass/regions-borrow-at.rs
2012-04-13 21:06:57 -07:00

11 lines
133 B
Rust

fn foo(x: &uint) -> uint {
*x
}
fn main() {
let p = @22u;
let r = foo(p);
#debug["r=%u", r];
assert r == 22u;
}