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

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

13 lines
283 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
2025-09-16 22:58:54 +00:00
//@ only-64bit
2024-12-14 03:45:29 +00:00
//@ edition: 2024
//@ needs-unwind unwind edges are different with panic=abort
pub fn foo() {
let y = 0;
let x = async || {
let y = y;
};
}