summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-46472.rs
blob: b9e20e8dbcb5f119117af83f70587304d6eca5ea (plain)
1
2
3
4
5
6
fn bar<'a>() -> &'a mut u32 {
    &mut 4
    //~^ ERROR cannot return reference to temporary value [E0515]
}

fn main() { }