fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
353 B18 linesraw
1error: struct literals are not allowed here
2  --> $DIR/struct-literal-in-while.rs:12:11
3   |
4LL |       while Foo {
5   |  ___________^
6LL | |         x: 3
7LL | |     }.hi() {
8   | |_____^
9   |
10help: surround the struct literal with parentheses
11   |
12LL |     while (Foo {
13LL |         x: 3
14LL |     }).hi() {
15   |
16
17error: aborting due to previous error
18