]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-91421.rs
Auto merge of #101030 - woppopo:const_location, r=scottmcm
[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 is missing a block after the condition
6     //~| HELP: this binary operation is possibly unfinished
7         3
8     } else { 4 };
9 }