12 lines
179 B
Rust
12 lines
179 B
Rust
// edition:2018
|
|
// check-pass
|
|
|
|
#![feature(async_closure)]
|
|
fn foo() -> Box<dyn std::future::Future<Output = u32>> {
|
|
let x = 0u32;
|
|
Box::new((async || x)())
|
|
}
|
|
|
|
fn main() {
|
|
}
|