blob: 302564bb9519f42d4b52d171677a7a4e5194604e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ edition:2018
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ check-pass
#![feature(async_closure, unboxed_closures, async_fn_traits)]
fn project<F: async Fn<()>>(_: F) -> Option<F::Output> { None }
fn main() {
let x: Option<i32> = project(|| async { 1i32 });
}
|