rust/src/test/ui/issues/issue-46983.rs

7 lines
127 B
Rust
Raw Normal View History

2018-01-10 11:12:23 -06:00
fn foo(x: &u32) -> &'static u32 {
&*x
//~^ ERROR explicit lifetime required in the type of `x` [E0621]
}
fn main() {}