]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/match-non-exhaustive.rs
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / match-non-exhaustive.rs
1 fn main() {
2     match 0 { 1 => () } //~ ERROR non-exhaustive patterns
3     match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
4 }