rust/tests/ui/nll/user-annotations/issue-54124.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
173 B
Rust
Raw Normal View History

fn test<'a>() {
2018-12-11 15:49:40 -06:00
let _:fn(&()) = |_:&'a ()| {}; //~ ERROR lifetime may not live long enough
//~^ ERROR lifetime may not live long enough
}
fn main() {
test();
}