rust/tests/ui/match/postfix-match/pf-match-exhaustiveness.rs
Ross Smyth 68a58f255a Add postfix-match experimental feature
Co-authored-by: Josh Stone <jistone@redhat.com>
2024-03-05 23:34:45 -05:00

8 lines
116 B
Rust

#![feature(postfix_match)]
fn main() {
Some(1).match { //~ non-exhaustive patterns
None => {},
}
}