rust/tests/ui/match/postfix-match/no-unused-parens.rs

9 lines
115 B
Rust

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