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
|
|
|
| ++
|
2018-01-06 22:43:20 +00:00
|
|
|
|
2019-10-22 18:46:19 +00:00
|
|
|
error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
|
2019-01-06 15:33:05 +00:00
|
|
|
--> $DIR/issue-15980.rs:13:9
|
2018-01-06 22:43:20 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | }
|
2019-10-28 18:08:53 +00:00
|
|
|
| - expected one of `.`, `=>`, `?`, or an operator
|
2019-03-09 12:03:44 +00:00
|
|
|
LL |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | _ => {}
|
2018-01-06 22:43:20 +00:00
|
|
|
| ^ unexpected token
|
|
|
|
|
2018-10-20 21:38:23 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-01-06 22:43:20 +00:00
|
|
|
|