2018-12-18 21:27:22 +01:00
|
|
|
#![feature(nll)]
|
|
|
|
#![allow(warnings)]
|
|
|
|
|
2018-11-23 11:55:09 +01:00
|
|
|
fn foo<T: 'static>() { }
|
|
|
|
|
2018-12-18 21:27:22 +01:00
|
|
|
fn boo<'a>() {
|
2018-11-23 11:55:09 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
let x = foo::<&'a u32>();
|
2019-01-12 14:55:23 +00:00
|
|
|
//~^ ERROR lifetime may not live long enough
|
2018-11-23 11:55:09 +01:00
|
|
|
}
|
2018-12-18 21:27:22 +01:00
|
|
|
|
|
|
|
fn main() {}
|