```
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.
21 lines
624 B
Plaintext
21 lines
624 B
Plaintext
error: expected one of `=>`, `if`, or `|`, found `=`
|
|
--> $DIR/issue-89396.rs:9:17
|
|
|
|
|
LL | Some(_) = true,
|
|
| ^
|
|
| |
|
|
| expected one of `=>`, `if`, or `|`
|
|
| help: use a fat arrow to start a match arm: `=>`
|
|
|
|
error: expected one of `=>`, `@`, `if`, or `|`, found `->`
|
|
--> $DIR/issue-89396.rs:12:14
|
|
|
|
|
LL | None -> false,
|
|
| ^^
|
|
| |
|
|
| expected one of `=>`, `@`, `if`, or `|`
|
|
| help: use a fat arrow to start a match arm: `=>`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|