summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-addr-of-ret.rs
blob: e5dcd6db033f3561222728b1eae5271210832f92 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
fn f(x: &isize) -> &isize {
    return &*x;
}

pub fn main() {
    let three = &3;
    println!("{}", *f(three));
}