about summary refs log tree commit diff
path: root/tests/ui/expr/if/issue-4201.rs
blob: b456673b3c856dcde408d652cbd4f6fb20249adb (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ dont-require-annotations: NOTE

fn main() {
    let a = if true {
        0
    } else if false {
//~^ ERROR `if` may be missing an `else` clause
//~| NOTE expected integer, found `()`
        1
    };
}