rust/src/test/run-pass/regions-borrow-at.rs
2012-07-30 18:38:15 -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;
}