]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/expr-as-stmt.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / expr-as-stmt.stderr
index a11209998a7d50b0e7ffdc2653df794f0ea175da..2a751e9d43a37a2265ebb5685ba2daed4380d5a3 100644 (file)
@@ -35,6 +35,7 @@ error: expected expression, found `>`
    |
 LL |     } > 0
    |       ^ expected expression
+   |
 help: parentheses are required to parse this as an expression
    |
 LL |     (match x {
@@ -47,36 +48,24 @@ error[E0308]: mismatched types
    |
 LL |     {2} + {2}
    |      ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/expr-as-stmt.rs:12:6
    |
 LL |     {2} + 2
    |      ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/expr-as-stmt.rs:18:7
    |
 LL |     { 42 } + foo;
    |       ^^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/expr-as-stmt.rs:24:7
    |
 LL |     { 3 } * 3
    |       ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
 
 error[E0614]: type `{integer}` cannot be dereferenced
   --> $DIR/expr-as-stmt.rs:24:11