rust/tests/ui/rustc_public-ir-print/async-closure.rs
Camille Gillot eddd755f28 Bless ui.
2025-09-16 22:58:54 +00:00

13 lines
283 B
Rust

//@ compile-flags: -Z unpretty=stable-mir --crate-type lib -C panic=abort -Zmir-opt-level=0
//@ check-pass
//@ only-64bit
//@ edition: 2024
//@ needs-unwind unwind edges are different with panic=abort
pub fn foo() {
let y = 0;
let x = async || {
let y = y;
};
}