rust/src/test/ui/match/match-non-exhaustive.rs
2018-12-25 21:08:33 -07:00

5 lines
139 B
Rust

fn main() {
match 0 { 1 => () } //~ ERROR non-exhaustive patterns
match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
}