Don't check match scrutinee of postfix match for unused parens

This commit is contained in:
Michael Goulet 2024-03-26 11:16:09 -04:00
parent 519d892f95
commit 950b40f111
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,8 @@
//@ check-pass
#![feature(postfix_match)]
fn main() {
(&1).match { a => a };
(1 + 2).match { b => b };
}