rust/src/test/run-pass/regions-borrow-at.rs
2012-08-23 11:14:14 -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;
}