about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-4201.rs
blob: 2f1d6d2177e40cc56362037c5fc9956759a9da7a (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 integer
        1
    };
}