2018-01-06 16:43:20 -06:00
|
|
|
error: expected identifier, found keyword `return`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/issue-15980.rs:8:13
|
2018-01-06 16:43:20 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile {
|
2018-01-06 16:43:20 -06:00
|
|
|
| ------------- while parsing this struct
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | return
|
2018-01-06 16:43:20 -06:00
|
|
|
| ^^^^^^ expected identifier, found keyword
|
2018-12-30 13:52:15 -06:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | r#return
|
|
|
|
|
|
2018-01-06 16:43:20 -06:00
|
|
|
|
|
|
|
error: expected one of `.`, `=>`, `?`, or an operator, found `_`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/issue-15980.rs:13:9
|
2018-01-06 16:43:20 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2018-01-06 16:43:20 -06:00
|
|
|
| - expected one of `.`, `=>`, `?`, or an operator here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | _ => {}
|
2018-01-06 16:43:20 -06:00
|
|
|
| ^ unexpected token
|
|
|
|
|
2018-10-20 16:38:23 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-01-06 16:43:20 -06:00
|
|
|
|