rust/src/test/ui/issues/issue-46983.rs
2019-05-12 18:46:43 +01:00

7 lines
127 B
Rust

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