mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
21 lines
637 B
Plaintext
21 lines
637 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 1 previous error
|
|
|