]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / closures / binder / suggestion-for-introducing-lifetime-into-binder.rs
1 #![feature(closure_lifetime_binder)]
2 fn main() {
3     for<> |_: &'a ()| -> () {};
4     //~^ ERROR use of undeclared lifetime name `'a`
5     for<'a> |_: &'b ()| -> () {};
6     //~^ ERROR use of undeclared lifetime name `'b`
7 }