summaryrefslogtreecommitdiffstats
path: root/src/test/ui/expr/if/issue-4201.rs
blob: 1f292229fd6cd54414e1d5a68f54fa63bd77c4b2 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let a = if true {
        0
    } else if false {
//~^ ERROR `if` may be missing an `else` clause
//~| expected `()`, found integer
        1
    };
}