]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-15980.stderr
Do not store overlap_mode, just pass it down on insert
[rust.git] / src / test / ui / parser / issues / 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    |
10 help: you can escape reserved keywords to use them as identifiers
11    |
12 LL |             r#return
13    |
14
15 error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
16   --> $DIR/issue-15980.rs:13:9
17    |
18 LL |         }
19    |          - expected one of `.`, `=>`, `?`, or an operator
20 LL |
21 LL |         _ => {}
22    |         ^ unexpected token
23
24 error: aborting due to 2 previous errors
25