summary refs log tree commit diff
path: root/src/test/ui/issues/issue-46983.rs
blob: a5c1e17a58c3bebcc314d5d6c4053f1f692da627 (plain)
1
2
3
4
5
6
7
8
#![feature(nll)]

fn foo(x: &u32) -> &'static u32 {
    &*x
    //~^ ERROR explicit lifetime required in the type of `x` [E0621]
}

fn main() {}