Files
rust/tests/ui/parser
bors 9cd272dc85 Auto merge of #146044 - estebank:issue-88727, r=chenyukang
Suggest parentheses when `match` or `if` expression in binop is parsed as statement

```
error[E0308]: mismatched types
  --> $DIR/expr-as-stmt.rs:81:5
   |
LL |     match () { _ => true } && match () { _ => true };
   |     ^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool`
   |
help: parentheses are required to parse this as an expression
   |
LL |     (match () { _ => true }) && match () { _ => true };
   |     +                      +
```

Address the common case from rust-lang/rust#88727. The original parse error is still outstanding, but the cases brought up in the thread are resolved.
2025-09-05 12:23:58 +00:00
..
2025-04-03 21:41:58 +00:00
2025-08-22 08:58:45 +02:00
…
2025-08-14 13:53:57 -07:00
2025-07-05 00:45:24 +05:00
2025-08-28 20:05:04 +02:00
2025-08-28 20:05:04 +02:00
2025-07-25 20:38:54 +05:00
2025-07-31 21:25:49 +05:00
2025-08-09 16:27:20 +05:00
2025-07-01 15:29:29 +05:00
2025-04-25 17:02:59 +05:00