|
LL | if x == E::I { field1: true, field2: 42 } {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-help: surround the struct literal with parenthesis
+help: surround the struct literal with parentheses
|
LL | if x == (E::I { field1: true, field2: 42 }) {}
| ^ ^
|
LL | if x == E::V { field: false } {}
| ^^^^^^^^^^^^^^^^^^^^^
-help: surround the struct literal with parenthesis
+help: surround the struct literal with parentheses
|
LL | if x == (E::V { field: false }) {}
| ^ ^
|
LL | if x == E::J { field: -42 } {}
| ^^^^^^^^^^^^^^^^^^^
-help: surround the struct literal with parenthesis
+help: surround the struct literal with parentheses
|
LL | if x == (E::J { field: -42 }) {}
| ^ ^
|
LL | if x == E::K { field: "" } {}
| ^^^^^^^^^^^^^^^^^^
-help: surround the struct literal with parenthesis
+help: surround the struct literal with parentheses
|
LL | if x == (E::K { field: "" }) {}
| ^ ^