fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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: struct literals are not allowed here 18 --> $DIR/struct-literal-in-while.rs:17:22 19 | 20LL | while let true = Foo { 21 | ______________________^ 22LL | | x: 3 23LL | | }.hi() { 24 | |_____^ 25 | 26help: surround the struct literal with parentheses 27 | 28LL ~ while let true = (Foo { 29LL | x: 3 30LL ~ }).hi() { 31 | 32 33error: aborting due to 2 previous errors 34