aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/match-restpattern-tuple-2.rs
blob: 40900a36bece4a219417a29cd727692e52f33a3f (plain)
1
2
3
4
5
6
7
8
fn main() {
    let x = (1, 2, 3, 4);

    match x {
        (1, .., 2, 3, 4, 5) => {}, // { dg-error "expected a tuple with 4 elements, found one with 5 elements" }
        _ => {}
    }
}