summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/async-closure-with-binder.rs
blob: 4fa599d37cbd170005aa9e9e94366a2267ea8df9 (plain)
1
2
3
4
5
6
7
8
// 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
}