Files
rust/tests/ui/expr/if/issue-4201.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
208 B
Rust
Raw Normal View History

//@ dont-require-annotations: NOTE
fn main() {
let a = if true {
0
} else if false {
2020-01-05 00:17:46 +00:00
//~^ ERROR `if` may be missing an `else` clause
//~| NOTE expected integer, found `()`
1
};
}