mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 15:37:39 +00:00
13 lines
266 B
Rust
13 lines
266 B
Rust
![]() |
//@ 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;
|
||
|
};
|
||
|
}
|