Files
rust/tests/ui/async-await/async-closures/promote-in-body.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
150 B
Rust
Raw Normal View History

//@ build-pass
//@ compile-flags: --crate-type=lib
//@ edition: 2024
union U {
f: i32,
}
fn foo() {
async || {
&U { f: 1 }
};
}