AST pretty-printer produces invalid syntax for postfix match #124206
Labels
A-pretty
Area: Pretty printing (including `-Z unpretty`)
C-bug
Category: This is a bug.
F-postfix_match
`#![feature(postfix_match)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As of current nightly,
rustc -Zunpretty=expanded main.rs
produces this:which is not valid Rust syntax.
The correct output would contain
({ 1 } + 1).match { _ => {} }
.F-postfix_match`#![feature(postfix_match)]`
tracking issue: #121618
The text was updated successfully, but these errors were encountered: