2019-04-14 17:09:03 -07:00
|
|
|
error: struct literals are not allowed here
|
|
|
|
--> $DIR/struct-literal-in-while.rs:12:11
|
2019-03-12 19:27:10 -07:00
|
|
|
|
|
2019-04-14 17:09:03 -07:00
|
|
|
LL | while Foo {
|
|
|
|
| ___________^
|
|
|
|
LL | | x: 3
|
|
|
|
LL | | }.hi() {
|
|
|
|
| |_____^
|
|
|
|
help: surround the struct literal with parenthesis
|
2019-03-12 19:27:10 -07:00
|
|
|
|
|
2019-04-14 17:09:03 -07:00
|
|
|
LL | while (Foo {
|
2019-03-12 19:27:10 -07:00
|
|
|
LL | x: 3
|
2019-04-14 17:09:03 -07:00
|
|
|
LL | }).hi() {
|
2019-01-06 18:33:05 +03:00
|
|
|
|
|
|
|
|
|
2019-04-14 17:09:03 -07:00
|
|
|
error: aborting due to previous error
|
2018-10-20 23:36:17 +03:00
|
|
|
|