]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/issue-54124.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / nll / user-annotations / issue-54124.rs
1 fn test<'a>() {
2     let _:fn(&()) = |_:&'a ()| {}; //~ ERROR lifetime may not live long enough
3     //~^ ERROR lifetime may not live long enough
4 }
5
6 fn main() {
7     test();
8 }