rust/tests/ui/parser/async-with-nonterminal-block.rs

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

17 lines
207 B
Rust
Raw Normal View History

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