]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-for.stderr
b319c64f406f1da4f3bb8dd3be5c06d697fa913a
[rust.git] / src / test / ui / parser / struct-literal-in-for.stderr
1 error: expected type, found `3`
2   --> $DIR/struct-literal-in-for.rs:13:12
3    |
4 LL |         x: 3
5    |            ^ expecting a type here because of type ascription
6
7 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
8   --> $DIR/struct-literal-in-for.rs:14:12
9    |
10 LL |     }.hi() {
11    |            ^ expected one of `.`, `;`, `?`, `}`, or an operator here
12
13 error[E0423]: expected value, found struct `Foo`
14   --> $DIR/struct-literal-in-for.rs:12:14
15    |
16 LL |     for x in Foo {
17    |              ^^^ did you mean `(Foo { /* fields */ })`?
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0423`.