about summary refs log tree commit diff
path: root/tests/ui/rustc_public-ir-print/async-closure.rs
blob: 80f96e09cfc78dcb7869ee030929606c42b159cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ compile-flags: -Z unpretty=stable-mir --crate-type lib -C panic=abort -Zmir-opt-level=0
//@ 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;
    };
}