diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2023-10-06 16:37:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-06 16:37:47 -0700 |
| commit | 0d68e416a568ae0e206bcf65a2c5234565ba3bf5 (patch) | |
| tree | 0383e5efae6e11439dcae32184ba5c06df37c69e /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 6d1c3a40cb4ce7b455e44834f79c5ecf39cd5021 (diff) | |
| parent | 8fd345dd4b85b6758896995beb5b0417efd52364 (diff) | |
| download | rust-0d68e416a568ae0e206bcf65a2c5234565ba3bf5.tar.gz rust-0d68e416a568ae0e206bcf65a2c5234565ba3bf5.zip | |
Rollup merge of #116400 - estebank:issue-78585, r=WaffleLapkin
Detect missing `=>` after match guard during parsing
```
error: expected one of `,`, `:`, or `}`, found `.`
--> $DIR/missing-fat-arrow.rs:25:14
|
LL | Some(a) if a.value == b {
| - while parsing this struct
LL | a.value = 1;
| -^ expected one of `,`, `:`, or `}`
| |
| while parsing this struct field
|
help: try naming a field
|
LL | a: a.value = 1;
| ++
help: you might have meant to start a match arm after the match guard
|
LL | Some(a) if a.value == b => {
| ++
```
Fix #78585.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
