]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-91421.rs
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / parser / issue-91421.rs
1 // Regression test for issue #91421.
2
3 fn main() {
4     let value = if true && {
5     //~^ ERROR: this `if` expression has a condition, but no block
6     //~| HELP: maybe you forgot the right operand of the condition?
7         3
8         //~^ ERROR: mismatched types [E0308]
9     } else { 4 };
10 }