2018-01-06 22:43:20 +00:00
|
|
|
error: expected identifier, found keyword `return`
|
2019-01-06 15:33:05 +00:00
|
|
|
--> $DIR/issue-15980.rs:8:13
|
2018-01-06 22:43:20 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile {
|
2018-01-06 22:43:20 +00:00
|
|
|
| ------------- while parsing this struct
|
2019-03-09 12:03:44 +00:00
|
|
|
LL |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | return
|
2018-01-06 22:43:20 +00:00
|
|
|
| ^^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `return` to use it as an identifier
|
2018-12-30 19:52:15 +00:00
|
|
|
|
|
|
|
|
LL | r#return
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2023-10-03 21:21:02 +00:00
|
|
|
help: you might have meant to start a match arm after the match guard
|
2018-01-06 22:43:20 +00:00
|
|
|
|
|
2023-10-03 21:21:02 +00:00
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile => {
|
|
|
|
| ++
|
2018-01-06 22:43:20 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-01-06 22:43:20 +00:00
|
|
|
|