mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-15 05:27:22 +00:00
11 lines
185 B
Rust
11 lines
185 B
Rust
// edition:2018
|
|
#![feature(async_closure)]
|
|
fn foo() -> Box<dyn std::future::Future<Output = u32>> {
|
|
let x = 0u32;
|
|
Box::new((async || x)())
|
|
//~^ ERROR E0373
|
|
}
|
|
|
|
fn main() {
|
|
}
|