summary refs log tree commit diff
path: root/tests/ui/stable-mir-print/async-closure.rs
blob: 7da532a359f9451df3b078286fca69d53572f525 (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
//@ 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;
    };
}