diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-26 12:19:34 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-26 12:19:34 +0000 |
| commit | 5e31cd30aae245aaa1374e12521667b8c728402d (patch) | |
| tree | d4e12cb04a7217bd8b5a8dc9bef81ce353d2dfbd /tests/ui/async-await/async-closures | |
| parent | 95a2212587f1b8500af1ac630322b0cb2e030c61 (diff) | |
| download | rust-5e31cd30aae245aaa1374e12521667b8c728402d.tar.gz rust-5e31cd30aae245aaa1374e12521667b8c728402d.zip | |
Support opaque_types_defined_by for SyntheticCoroutineBody
Diffstat (limited to 'tests/ui/async-await/async-closures')
| -rw-r--r-- | tests/ui/async-await/async-closures/promote-in-body.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/async-await/async-closures/promote-in-body.rs b/tests/ui/async-await/async-closures/promote-in-body.rs new file mode 100644 index 00000000000..ea95d680987 --- /dev/null +++ b/tests/ui/async-await/async-closures/promote-in-body.rs @@ -0,0 +1,13 @@ +//@ build-pass +//@ compile-flags: --crate-type=lib +//@ edition: 2024 + +union U { + f: i32, +} + +fn foo() { + async || { + &U { f: 1 } + }; +} |
