2018-01-06 14:43:20 -08:00
|
|
|
error: expected identifier, found keyword `return`
|
2019-01-06 18:33:05 +03:00
|
|
|
--> $DIR/issue-15980.rs:8:13
|
2018-01-06 14:43:20 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile {
|
2018-01-06 14:43:20 -08:00
|
|
|
| ------------- while parsing this struct
|
2019-03-09 15:03:44 +03:00
|
|
|
LL |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | return
|
2018-01-06 14:43:20 -08:00
|
|
|
| ^^^^^^ expected identifier, found keyword
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2022-01-27 14:53:39 -08:00
|
|
|
help: escape `return` to use it as an identifier
|
2018-12-30 11:52:15 -08:00
|
|
|
|
|
|
|
|
LL | r#return
|
2022-01-27 14:53:39 -08:00
|
|
|
| ++
|
2018-01-06 14:43:20 -08:00
|
|
|
|
2019-10-22 11:46:19 -07:00
|
|
|
error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
|
2019-01-06 18:33:05 +03:00
|
|
|
--> $DIR/issue-15980.rs:13:9
|
2018-01-06 14:43:20 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2019-10-28 11:08:53 -07:00
|
|
|
| - expected one of `.`, `=>`, `?`, or an operator
|
2019-03-09 15:03:44 +03:00
|
|
|
LL |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | _ => {}
|
2018-01-06 14:43:20 -08:00
|
|
|
| ^ unexpected token
|
|
|
|
|
2018-10-21 00:38:23 +03:00
|
|
|
error: aborting due to 2 previous errors
|
2018-01-06 14:43:20 -08:00
|
|
|
|