]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/E0409.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / mismatched_types / E0409.rs
1 fn main() {
2     let x = (0, 2);
3
4     match x {
5         (0, ref y) | (y, 0) => {} //~ ERROR E0409
6                                   //~| ERROR E0308
7         _ => ()
8     }
9 }