aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/match-identifierpattern-enum.rs
blob: c712667e27a4f9dd91c39397faee85d2c0016d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum Foo {
    I(i32),
}

fn main() {
    let x = Foo::I(1);

    match x {
        a @ Foo::I(b) => {},
        _ => {},
    };
}