rust/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs
2023-01-11 09:32:08 +00:00

8 lines
221 B
Rust

#![feature(closure_lifetime_binder)]
fn main() {
for<> |_: &'a ()| -> () {};
//~^ ERROR use of undeclared lifetime name `'a`
for<'a> |_: &'b ()| -> () {};
//~^ ERROR use of undeclared lifetime name `'b`
}