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