rust/src/test/ui/issue-54943.rs

14 lines
187 B
Rust
Raw Normal View History

#![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() {}