blob: ce4e010674359670526297c83d84bef3cf11d4d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(nll)]
#![allow(warnings)]
fn foo<T: 'static>() { }
fn boo<'a>() {
return;
let x = foo::<&'a u32>();
//~^ ERROR lifetime may not live long enough
}
fn main() {}
|