rust/src/test/run-pass/regions-addr-of-ret.rs
2012-08-23 11:14:14 -07:00

10 lines
122 B
Rust

fn f(x : &a/int) -> &a/int {
return &*x;
}
fn main() {
let three = &3;
log(error, fmt!("%d", *f(three)));
}