diff options
Diffstat (limited to 'tests/ui/async-await/issue-73541-2.rs')
-rw-r--r-- | tests/ui/async-await/issue-73541-2.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/async-await/issue-73541-2.rs b/tests/ui/async-await/issue-73541-2.rs new file mode 100644 index 000000000..70b4ab253 --- /dev/null +++ b/tests/ui/async-await/issue-73541-2.rs @@ -0,0 +1,20 @@ +// edition:2018 + +async fn c() { + 'a: loop { + macro_rules! b { + () => { + continue 'a + //~^ ERROR use of unreachable label `'a` + } + } + + async { + loop { + b!(); + } + }; + } +} + +fn main() { } |