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
|
|
|
| ++
|
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 14:43:20 -08:00
|
|
|
|
|
2023-10-03 21:21:02 +00:00
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile => {
|
|
|
|
|
| ++
|
2018-01-06 14:43:20 -08:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-01-06 14:43:20 -08:00
|
|
|
|