mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
13 lines
283 B
Rust
13 lines
283 B
Rust
//@ 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;
|
|
};
|
|
}
|