]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-30240.rs
Auto merge of #78682 - glandium:issue78471, r=lcnr
[rust.git] / src / test / ui / pattern / usefulness / issue-30240.rs
1 fn main() {
2     match "world" { //~ ERROR non-exhaustive patterns: `&_`
3         "hello" => {}
4     }
5
6     match "world" { //~ ERROR non-exhaustive patterns: `&_`
7         ref _x if false => {}
8         "hello" => {}
9     }
10 }