summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-91421.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issue-91421.rs')
-rw-r--r--tests/ui/parser/issue-91421.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-91421.rs b/tests/ui/parser/issue-91421.rs
new file mode 100644
index 000000000..8bba27f37
--- /dev/null
+++ b/tests/ui/parser/issue-91421.rs
@@ -0,0 +1,9 @@
+// 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 };
+}