about summary refs log tree commit diff
path: root/tests/ui/rustc_public-ir-print/async-closure.rs
blob: bd8c7e888a37c708d704502a8d7ee8989385526d (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-64bit
//@ edition: 2024
//@ needs-unwind unwind edges are different with panic=abort

pub fn foo() {
    let y = 0;
    let x = async || {
        let y = y;
    };
}