Formatting match arm with a comment between the expression and the comma causes invalid code #5784
Labels
a-comments
a-matches
match arms, patterns, blocks, etc
bug
Panic, non-idempotency, invalid code, etc.
Example code (playground link)
After format with
rustfmt 1.5.2-stable (90c5418 2023-05-31)
:A comma is inserted after the println! call, causing this syntax error:
The text was updated successfully, but these errors were encountered: