]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-while.stderr
Improve some compiletest documentation
[rust.git] / src / test / ui / parser / struct-literal-in-while.stderr
1 error: expected type, found `3`
2   --> $DIR/struct-literal-in-while.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-while.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-while.rs:12:11
15    |
16 LL |     while Foo {
17    |           ^^^ did you mean `(Foo { /* fields */ })`?
18
19 error[E0599]: no method named `hi` found for type `()` in the current scope
20   --> $DIR/struct-literal-in-while.rs:14:7
21    |
22 LL |     }.hi() {
23    |       ^^
24
25 error: aborting due to 4 previous errors
26
27 Some errors occurred: E0423, E0599.
28 For more information about an error, try `rustc --explain E0423`.