about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-31 01:43:57 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-31 01:43:57 +0000
commitf5b5e67f0f512d30cc6a5dab0ed6cf55c3905db5 (patch)
tree45845212d0fe060b4bf23d762e724f65b2ef7085 /compiler/rustc_driver_impl/src
parenta7e32a5319f82c19f7c8024efd3afcc1825fa5e2 (diff)
downloadrust-f5b5e67f0f512d30cc6a5dab0ed6cf55c3905db5.tar.gz
rust-f5b5e67f0f512d30cc6a5dab0ed6cf55c3905db5.zip
More targeted parentheses suggestion for match statement intended as expression
```
error[E0308]: mismatched types
  --> $DIR/expr-as-stmt.rs:69:5
   |
LL |     match () { () => 1 } + match () { () => 1 }
   |     ^^^^^^^^^^^^^^^^^^^^ expected `()`, found integer
   |
help: parentheses are required to parse this as an expression
   |
LL |     (match () { () => 1 }) + match () { () => 1 }
   |     +                    +
```
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions