rust/src/test/run-pass/regions-addr-of-ret.rs

9 lines
96 B
Rust
Raw Normal View History

fn f(x : &a.int) -> &a.int {
ret &*x;
}
fn main() {
log(error, #fmt("%d", *f(&3)));
}