comment inside of empty enum variant payload with explicit discriminant results in invalid syntax after rustfmt run #5686
Labels
a-comments
bug
Panic, non-idempotency, invalid code, etc.
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
help wanted
Example code:
This compiles fine.
rustfmt 1.5.2-nightly (50d3ba5 2023-02-04) inserts a line:
This is a syntax error:
The text was updated successfully, but these errors were encountered: