diff options
Diffstat (limited to 'tests/ui/parser/async-with-nonterminal-block.rs')
| -rw-r--r-- | tests/ui/parser/async-with-nonterminal-block.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/parser/async-with-nonterminal-block.rs b/tests/ui/parser/async-with-nonterminal-block.rs new file mode 100644 index 00000000000..96015fd5d82 --- /dev/null +++ b/tests/ui/parser/async-with-nonterminal-block.rs @@ -0,0 +1,16 @@ +// check-pass +// edition:2021 + +macro_rules! create_async { + ($body:block) => { + async $body + }; +} + +async fn other() {} + +fn main() { + let y = create_async! {{ + other().await; + }}; +} |
