-
Notifications
You must be signed in to change notification settings - Fork 931
Closed
Description
#![feature(async_closure)]
macro_rules! expr {
($e:expr) => {};
}
expr!(static async || {});
As of current master (7b8303d), cargo run --bin rustfmt -- repro.rs --emit=stdout --edition=2021
creates the following diff:
- expr!(static async || {});
+ expr!(async static || {});
which fails to compile:
error: expected one of `move`, `|`, or `||`, found keyword `static`
--> repro.rs:7:13
|
4 | ($e:expr) => {};
| ------- while parsing argument for this `expr` macro fragment
...
7 | expr!(async static || {});
| ^^^^^^ expected one of `move`, `|`, or `||`
Metadata
Metadata
Assignees
Labels
No labels