summary refs log tree commit diff
path: root/src/test/ui/issues/issue-11319.rs
blob: ea901205544b621e7f998730fddf3edc0da0c215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    match Some(10) {
    //~^ ERROR match arms have incompatible types
    //~| expected type `bool`
    //~| found type `()`
    //~| expected bool, found ()
        Some(5) => false,
        Some(2) => true,
        None    => (),
        _       => true
    }
}