aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/match7.rs
blob: b16a1883522a1d0c79a177a6e7c531e6a1a37e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn bar (x: u8, y: u8) -> i32 {
    match (x, y) {
        (1, 1) => { return 1; }
        (1, _) => { return -1; }
    }

    return 0;
}

fn main () -> () {
    bar (1, 2);
}