Files
rust/tests/ui/rustc_public-ir-print/async-closure.rs

13 lines
284 B
Rust
Raw Normal View History

2025-07-06 16:11:43 +00:00
//@ compile-flags: -Z unpretty=stable-mir --crate-type lib -C panic=abort -Zmir-opt-level=0
2024-12-14 03:45:29 +00:00
//@ check-pass
//@ only-x86_64
//@ edition: 2024
//@ needs-unwind unwind edges are different with panic=abort
pub fn foo() {
let y = 0;
let x = async || {
let y = y;
};
}