7 lines
153 B
Rust
7 lines
153 B
Rust
fn f<'a: 'static>(_: &'a i32) {} //~WARN unnecessary lifetime parameter `'a`
|
|
|
|
fn main() {
|
|
let x = 0;
|
|
f(&x); //~ERROR does not live long enough
|
|
}
|