aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2906.rs
blob: 20abcb095b8fa01784ba5e93f5e45ed14b46d1c3 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-warning "field is never read: .a." "" { target *-*-* } .-1 }
struct Foo { a: i32 }

fn main() {
    let a = Foo { a: 15 };
    
    match a {
        b => { }
    }
}