mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 06:46:18 +00:00
14 lines
230 B
Rust
14 lines
230 B
Rust
//@ compile-flags: -Z mir-opt-level=3
|
|
//@ edition:2018
|
|
//@ build-pass
|
|
|
|
use std::future::Future;
|
|
|
|
fn async_closure() -> impl Future<Output = u8> {
|
|
(async move || -> u8 { 42 })()
|
|
}
|
|
|
|
fn main() {
|
|
let _fut = async_closure();
|
|
}
|