]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/match-non-exhaustive.rs
Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett
[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 }