]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-if.stderr
Improve some compiletest documentation
[rust.git] / src / test / ui / parser / struct-literal-in-if.stderr
1 error: expected type, found `3`
2   --> $DIR/struct-literal-in-if.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-if.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-if.rs:12:8
15    |
16 LL |     if 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`.