rust/tests/ui/parser/issues/issue-15980.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
637 B
Plaintext
Raw Normal View History

error: expected identifier, found keyword `return`
--> $DIR/issue-15980.rs:8:13
|
2018-02-23 00:42:32 +00:00
LL | Err(ref e) if e.kind == io::EndOfFile {
| ------------- while parsing this struct
2019-03-09 12:03:44 +00:00
LL |
2018-02-23 00:42:32 +00:00
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