os-rust/src/test/ui/parser/struct-literal-in-while.stderr

18 lines
348 B
Text
Raw Normal View History

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