rust/tests/ui/parser/issues/issue-15980.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
711 B
Plaintext
Raw Normal View History

error: expected identifier, found keyword `return`
--> $DIR/issue-15980.rs:8:13
|
2018-02-22 18:42:32 -06:00
LL | Err(ref e) if e.kind == io::EndOfFile {
| ------------- while parsing this struct
2019-03-09 06:03:44 -06:00
LL |
2018-02-22 18:42:32 -06:00
LL | return
| ^^^^^^ expected identifier, found keyword
|
help: escape `return` to use it as an identifier
|
LL | r#return
| ++
2019-10-22 13:46:19 -05:00
error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
--> $DIR/issue-15980.rs:13:9
|
2018-02-22 18:42:32 -06:00
LL | }
| - expected one of `.`, `=>`, `?`, or an operator
2019-03-09 06:03:44 -06:00
LL |
2018-02-22 18:42:32 -06:00
LL | _ => {}
| ^ unexpected token
error: aborting due to 2 previous errors