summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/issue-11319.rs
blob: ab69ab250ff05c9c24149e41919f5a7735dcd958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    match Some(10) {
    //~^ NOTE `match` arms have incompatible types
        Some(5) => false,
        //~^ NOTE this is found to be of type `bool`
        Some(2) => true,
        //~^ NOTE this is found to be of type `bool`
        None    => (),
        //~^ ERROR `match` arms have incompatible types
        //~| NOTE expected `bool`, found `()`
        _       => true
    }
}