Files
rust/tests/ui/async-await/async-drop/live-dead-storage2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
230 B
Rust
Raw Normal View History

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