blob: 686addcb1a91c7a3994e04fb4994fd4a34f62eb9 [file] [log] [blame] [edit]
//@ edition:2018
//@ check-pass
#![feature(async_closure, type_alias_impl_trait)]
type Tait = impl async Fn();
fn tait() -> Tait {
|| async {}
}
fn foo(x: impl async Fn()) -> impl async Fn() { x }
fn param<T: async Fn()>() {}
fn main() {}