summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-15980.stderr
blob: c59c811199ea8879460f9009be40499f65110802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error: expected identifier, found keyword `return`
  --> $DIR/issue-15980.rs:8:13
   |
LL |         Err(ref e) if e.kind == io::EndOfFile {
   |                                 ------------- while parsing this struct
LL |
LL |             return
   |             ^^^^^^ expected identifier, found keyword
   |
help: escape `return` to use it as an identifier
   |
LL |             r#return
   |             ++

error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
  --> $DIR/issue-15980.rs:13:9
   |
LL |         }
   |          - expected one of `.`, `=>`, `?`, or an operator
LL |
LL |         _ => {}
   |         ^ unexpected token

error: aborting due to 2 previous errors