rust/tests/ui/closures/binder/async-closure-with-binder.rs
2023-01-11 09:32:08 +00:00

9 lines
295 B
Rust

// edition:2021
#![feature(closure_lifetime_binder)]
#![feature(async_closure)]
fn main() {
for<'a> async || ();
//~^ ERROR `for<...>` binders on `async` closures are not currently supported
//~^^ ERROR implicit types in closure signatures are forbidden when `for<...>` is present
}