]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-15980.stderr
Rollup merge of #61499 - varkor:issue-53457, r=oli-obk
[rust.git] / src / test / ui / parser / issue-15980.stderr
1 error: expected identifier, found keyword `return`
2   --> $DIR/issue-15980.rs:8:13
3    |
4 LL |         Err(ref e) if e.kind == io::EndOfFile {
5    |                                 ------------- while parsing this struct
6 LL |
7 LL |             return
8    |             ^^^^^^ expected identifier, found keyword
9 help: you can escape reserved keywords to use them as identifiers
10    |
11 LL |             r#return
12    |
13
14 error: expected one of `.`, `=>`, `?`, or an operator, found `_`
15   --> $DIR/issue-15980.rs:13:9
16    |
17 LL |         }
18    |          - expected one of `.`, `=>`, `?`, or an operator here
19 LL |
20 LL |         _ => {}
21    |         ^ unexpected token
22
23 error: aborting due to 2 previous errors
24