]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/struct-literal-variant-in-if.stderr
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / parser / struct-literal-variant-in-if.stderr
index 3ea5ca565c5e530e9cd4525cc6dffafd6863dfab..4cffbe433b87d4e16d03858af2a4c0d6b1a999fa 100644 (file)
@@ -7,7 +7,7 @@ LL |     if x == E::I { field1: true, field2: 42 } {}
 help: surround the struct literal with parentheses
    |
 LL |     if x == (E::I { field1: true, field2: 42 }) {}
-   |             ^                                 ^
+   |             +                                 +
 
 error: struct literals are not allowed here
   --> $DIR/struct-literal-variant-in-if.rs:15:13
@@ -18,7 +18,7 @@ LL |     if x == E::V { field: false } {}
 help: surround the struct literal with parentheses
    |
 LL |     if x == (E::V { field: false }) {}
-   |             ^                     ^
+   |             +                     +
 
 error: struct literals are not allowed here
   --> $DIR/struct-literal-variant-in-if.rs:17:13
@@ -29,7 +29,7 @@ LL |     if x == E::J { field: -42 } {}
 help: surround the struct literal with parentheses
    |
 LL |     if x == (E::J { field: -42 }) {}
-   |             ^                   ^
+   |             +                   +
 
 error: struct literals are not allowed here
   --> $DIR/struct-literal-variant-in-if.rs:19:13
@@ -40,7 +40,7 @@ LL |     if x == E::K { field: "" } {}
 help: surround the struct literal with parentheses
    |
 LL |     if x == (E::K { field: "" }) {}
-   |             ^                  ^
+   |             +                  +
 
 error[E0423]: expected value, found struct variant `E::V`
   --> $DIR/struct-literal-variant-in-if.rs:10:13
@@ -51,7 +51,7 @@ LL |     if x == E::V { field } {}
 help: surround the struct literal with parentheses
    |
 LL |     if x == (E::V { field }) {}
-   |             ^              ^
+   |             +              +
 
 error[E0308]: mismatched types
   --> $DIR/struct-literal-variant-in-if.rs:10:20