]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-enum2.stderr
Auto merge of #58208 - taiki-e:libstd-2018, r=Centril
[rust.git] / src / test / ui / parser / recover-enum2.stderr
1 error: expected type, found `{`
2   --> $DIR/recover-enum2.rs:8:18
3    |
4 LL |             abc: {}, //~ ERROR: expected type, found `{`
5    |                  ^
6
7 error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `{`
8   --> $DIR/recover-enum2.rs:27:22
9    |
10 LL |             Nope(i32 {}) //~ ERROR: found `{`
11    |                      ^ expected one of 7 possible tokens here
12
13 error: expected one of `!`, `&&`, `&`, `(`, `)`, `*`, `+`, `,`, `::`, `<`, `?`, `[`, `_`, `crate`, `dyn`, `extern`, `fn`, `for`, `impl`, `pub`, `unsafe`, `}`, or lifetime, found `{`
14   --> $DIR/recover-enum2.rs:27:22
15    |
16 LL |             Nope(i32 {}) //~ ERROR: found `{`
17    |                      ^ expected one of 23 possible tokens here
18
19 error: expected expression, found reserved identifier `_`
20   --> $DIR/recover-enum2.rs:32:22
21    |
22 LL |     let bad_syntax = _; //~ ERROR: expected expression, found reserved identifier `_`
23    |                      ^ expected expression
24
25 error: aborting due to 4 previous errors
26