1 2 3 4 5 6 7 8
fn foo(x: &uint) -> &uint { x } fn main() { let p = @3u; let r = foo(p); //~^ ERROR reference is not valid assert *p == *r; }