LL ~ }).hi() {
|
-error: aborting due to previous error
+error: struct literals are not allowed here
+ --> $DIR/struct-literal-in-if.rs:17:19
+ |
+LL | if let true = Foo {
+ | ___________________^
+LL | | x: 3
+LL | | }.hi() {
+ | |_____^
+ |
+help: surround the struct literal with parentheses
+ |
+LL ~ if let true = (Foo {
+LL | x: 3
+LL ~ }).hi() {
+ |
+
+error: aborting due to 2 previous errors