mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
14 lines
150 B
Rust
14 lines
150 B
Rust
//@ build-pass
|
|
//@ compile-flags: --crate-type=lib
|
|
//@ edition: 2024
|
|
|
|
union U {
|
|
f: i32,
|
|
}
|
|
|
|
fn foo() {
|
|
async || {
|
|
&U { f: 1 }
|
|
};
|
|
}
|