summary refs log tree commit diff
path: root/src/test/ui/parser/issue-91421.rs
blob: 9959df566383707aae0a5098e92292306ace6263 (plain)
1
2
3
4
5
6
7
8
9
10
// Regression test for issue #91421.

fn main() {
    let value = if true && {
    //~^ ERROR: this `if` expression has a condition, but no block
    //~| HELP: maybe you forgot the right operand of the condition?
        3
        //~^ ERROR: mismatched types [E0308]
    } else { 4 };
}