summary refs log tree commit diff
path: root/src/test/ui/parser/recover-enum2.stderr
blob: 802f0004564f9c49cd6be18c4891530f88b1063b (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
26
error: expected type, found `{`
  --> $DIR/recover-enum2.rs:18:18
   |
LL |             abc: {}, //~ ERROR: expected type, found `{`
   |                  ^

error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `{`
  --> $DIR/recover-enum2.rs:37:22
   |
LL |             Nope(i32 {}) //~ ERROR: found `{`
   |                      ^ expected one of 7 possible tokens here

error: expected one of `!`, `&&`, `&`, `(`, `)`, `*`, `+`, `,`, `::`, `<`, `?`, `[`, `_`, `crate`, `dyn`, `extern`, `fn`, `for`, `impl`, `pub`, `unsafe`, `}`, or lifetime, found `{`
  --> $DIR/recover-enum2.rs:37:22
   |
LL |             Nope(i32 {}) //~ ERROR: found `{`
   |                      ^ expected one of 23 possible tokens here

error: expected expression, found reserved identifier `_`
  --> $DIR/recover-enum2.rs:42:22
   |
LL |     let bad_syntax = _; //~ ERROR: expected expression, found reserved identifier `_`
   |                      ^ expected expression

error: aborting due to 4 previous errors