mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 03:27:44 +00:00
16 lines
246 B
Rust
16 lines
246 B
Rust
![]() |
// 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() {}
|