mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 03:27:44 +00:00
15 lines
197 B
Rust
15 lines
197 B
Rust
//@ edition: 2021
|
|
//@ check-pass
|
|
|
|
#![feature(async_fn_traits, unboxed_closures)]
|
|
|
|
fn bar<F, O>(_: F)
|
|
where
|
|
F: AsyncFnOnce<(), CallOnceFuture = O>,
|
|
{
|
|
}
|
|
|
|
fn main() {
|
|
bar(async move || {});
|
|
}
|