]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/recover-for-loop-parens-around-head.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / recover-for-loop-parens-around-head.stderr
index 1a1f395ee213eb0ad6c58ad0b239ed84ffc0a6e1..74ac926cb028395d6dc70fe697303b5228e603ad 100644 (file)
@@ -2,7 +2,7 @@ error: expected one of `)`, `,`, `@`, or `|`, found keyword `in`
   --> $DIR/recover-for-loop-parens-around-head.rs:10:16
    |
 LL |     for ( elem in vec ) {
-   |                ^^ expected one of `)`, `,`, `@`, or `|` here
+   |                ^^ expected one of `)`, `,`, `@`, or `|`
 
 error: unexpected closing `)`
   --> $DIR/recover-for-loop-parens-around-head.rs:10:23
@@ -18,9 +18,6 @@ error[E0308]: mismatched types
    |
 LL |         const RECOVERY_WITNESS: () = 0;
    |                                      ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
 
 error: aborting due to 3 previous errors