aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3929-2.rs
blob: 5f45a7c050a509b0156b17213482c791cf9a3983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-w" }
struct S {
    x: i32,
    y: i32,
}

fn main() {
    let s = S{x: 1, y: 2};
    match s {
        S{x: 1, ..} => {}
    }
}