summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-46983.rs
blob: 4bd49a8796b348a5c60266fdd2410f7b43784837 (plain)
1
2
3
4
5
6
fn foo(x: &u32) -> &'static u32 {
    &*x
    //~^ ERROR lifetime may not live long enough
}

fn main() {}