2025-06-08 21:32:04 +07:00
|
|
|
// ex-ice: #140531
|
|
|
|
|
//@ compile-flags: -Zlint-mir --crate-type lib
|
2025-05-18 14:50:30 +02:00
|
|
|
//@ edition:2024
|
2025-06-08 21:32:04 +07:00
|
|
|
//@ check-pass
|
|
|
|
|
|
2025-05-18 14:50:30 +02:00
|
|
|
#![feature(async_drop)]
|
2025-06-08 21:32:04 +07:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
2025-05-18 14:50:30 +02:00
|
|
|
async fn call_once(f: impl AsyncFnOnce()) {
|
|
|
|
|
let fut = Box::pin(f());
|
|
|
|
|
}
|