diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-08-31 01:43:57 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-31 01:43:57 +0000 |
| commit | f5b5e67f0f512d30cc6a5dab0ed6cf55c3905db5 (patch) | |
| tree | 45845212d0fe060b4bf23d762e724f65b2ef7085 /compiler/rustc_driver_impl/src | |
| parent | a7e32a5319f82c19f7c8024efd3afcc1825fa5e2 (diff) | |
| download | rust-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
