mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 05:20:43 +00:00
12 lines
230 B
Rust
12 lines
230 B
Rust
// ex-ice: #140531
|
|
//@ compile-flags: -Zlint-mir --crate-type lib
|
|
//@ edition:2024
|
|
//@ check-pass
|
|
|
|
#![feature(async_drop)]
|
|
#![allow(incomplete_features)]
|
|
|
|
async fn call_once(f: impl AsyncFnOnce()) {
|
|
let fut = Box::pin(f());
|
|
}
|