rust/tests/ui/parser/issue-91421.rs

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

10 lines
245 B
Rust
Raw Normal View History

// Regression test for issue #91421.
fn main() {
let value = if true && {
//~^ ERROR: this `if` expression is missing a block after the condition
//~| HELP: this binary operation is possibly unfinished
3
} else { 4 };
}