summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/issue-33498.rs
blob: 9c8a97e7e6b2b2867a80d688dc502f7774c78076 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
#![allow(unused_variables)]
pub fn main() {
    let x = (0, 2);

    match x {
        (0, ref y) => {}
        (y, 0) => {}
        _ => (),
    }
}