summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match-wildcards.rs
blob: 43f6e4913ac76fcb65c9b3a9ad9213dc4d1d601b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// run-fail
// error-pattern:squirrelcupcake
// ignore-emscripten no processes

fn cmp() -> isize {
    match (Some('a'), None::<char>) {
        (Some(_), _) => {
            panic!("squirrelcupcake");
        }
        (_, Some(_)) => {
            panic!();
        }
        _ => {
            panic!("wat");
        }
    }
}

fn main() {
    println!("{}", cmp());
}