rust/tests/ui/async-await/async-closures/call-once-deduction.rs
2024-12-13 00:04:56 +00:00

14 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 || {});
}