mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
14 lines
352 B
Rust
14 lines
352 B
Rust
//@ edition:2018
|
|
//@ revisions: current next
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@[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 });
|
|
}
|