blob: 18df870785e3f8cab9cefdafcd8c62dce8c2fd90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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());
}
|