10 lines
195 B
Rust
10 lines
195 B
Rust
![]() |
// edition:2018
|
||
|
#![feature(async_closure,async_await)]
|
||
|
fn foo() -> Box<impl std::future::Future<Output = u32>> {
|
||
|
let x = 0u32;
|
||
|
Box::new(async { x } )
|
||
|
//~^ ERROR E0373
|
||
|
}
|
||
|
|
||
|
fn main() {}
|