rust/tests/ui/parser/async-with-nonterminal-block.rs
2023-07-22 15:22:12 +00:00

16 lines
207 B
Rust

// check-pass
// edition:2021
macro_rules! create_async {
($body:block) => {
async $body
};
}
async fn other() {}
fn main() {
let y = create_async! {{
other().await;
}};
}