rust/tests/ui/closures/binder/async-closure-with-binder.rs

9 lines
295 B
Rust
Raw Normal View History

// 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
}