about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/call-once-deduction.rs
blob: ed2830a5e82973a3dcefd20043e7e49d55a032ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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 || {});
}