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.

10 lines
167 B
Rust
Raw Normal View History

fn main() {
let a = if true {
0
} else if false {
2020-01-04 18:17:46 -06:00
//~^ ERROR `if` may be missing an `else` clause
//~| expected integer, found `()`
1
};
}