]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-while.stderr
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccjit-codegen
[rust.git] / src / test / ui / parser / struct-literal-in-while.stderr
1 error: struct literals are not allowed here
2   --> $DIR/struct-literal-in-while.rs:12:11
3    |
4 LL |       while Foo {
5    |  ___________^
6 LL | |         x: 3
7 LL | |     }.hi() {
8    | |_____^
9    |
10 help: surround the struct literal with parentheses
11    |
12 LL |     while (Foo {
13 LL |         x: 3
14 LL |     }).hi() {
15    |
16
17 error: aborting due to previous error
18