]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-while.stderr
Rollup merge of #87910 - iago-lito:mark_unsafe_nonzero_arithmetics_as_const, r=joshtr...
[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