]> git.proxmox.com Git - rustc.git/blame - tests/ui/pattern/usefulness/match-non-exhaustive.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / ui / pattern / usefulness / match-non-exhaustive.rs
CommitLineData
223e47cc 1fn main() {
85aaf69f
SL
2 match 0 { 1 => () } //~ ERROR non-exhaustive patterns
3 match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
fe692bf9 4 //-| NOTE match arms with guards don't count towards exhaustivity
223e47cc 5}