1 error: expected type, found `3`
2 --> $DIR/struct-literal-in-while.rs:13:12
5 | ^ expecting a type here because of type ascription
7 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
8 --> $DIR/struct-literal-in-while.rs:14:12
11 | ^ expected one of `.`, `;`, `?`, `}`, or an operator here
13 error[E0423]: expected value, found struct `Foo`
14 --> $DIR/struct-literal-in-while.rs:12:11
17 | ^^^ did you mean `(Foo { /* fields */ })`?
19 error[E0599]: no method named `hi` found for type `()` in the current scope
20 --> $DIR/struct-literal-in-while.rs:14:7
25 error: aborting due to 4 previous errors
27 Some errors occurred: E0423, E0599.
28 For more information about an error, try `rustc --explain E0423`.