745c1ea438
``` 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
635 B
Plaintext
21 lines
635 B
Plaintext
error: expected identifier, found keyword `return`
|
|
--> $DIR/issue-15980.rs:8:13
|
|
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile {
|
|
| ------------- while parsing this struct
|
|
LL |
|
|
LL | return
|
|
| ^^^^^^ expected identifier, found keyword
|
|
|
|
|
help: escape `return` to use it as an identifier
|
|
|
|
|
LL | r#return
|
|
| ++
|
|
help: you might have meant to start a match arm after the match guard
|
|
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile => {
|
|
| ++
|
|
|
|
error: aborting due to previous error
|
|
|