rust/tests/ui/async-await/async-closures/call-once-deduction.rs

15 lines
197 B
Rust
Raw Permalink Normal View History

//@ edition: 2021
//@ check-pass
2024-11-06 17:53:59 +00:00
#![feature(async_fn_traits, unboxed_closures)]
fn bar<F, O>(_: F)
where
F: AsyncFnOnce<(), CallOnceFuture = O>,
{
}
fn main() {
bar(async move || {});
}