]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/mismatched_types/E0409.stderr
Reword label as per review comment
[rust.git] / src / test / ui / mismatched_types / E0409.stderr
index a1bfcafe053994451a6e145353906067694239a0..a73f9ab4dfddaa787be86ef8d324fb843bb9e6c2 100644 (file)
@@ -1,5 +1,5 @@
 error[E0409]: variable `y` is bound in inconsistent ways within the same match arm
-  --> $DIR/E0409.rs:15:23
+  --> $DIR/E0409.rs:5:23
    |
 LL |         (0, ref y) | (y, 0) => {} //~ ERROR E0409
    |                 -     ^ bound in different ways
@@ -7,10 +7,12 @@ LL |         (0, ref y) | (y, 0) => {} //~ ERROR E0409
    |                 first binding
 
 error[E0308]: mismatched types
-  --> $DIR/E0409.rs:15:23
+  --> $DIR/E0409.rs:5:23
    |
+LL |     match x {
+   |           - this match expression has type `_`
 LL |         (0, ref y) | (y, 0) => {} //~ ERROR E0409
-   |                       ^ expected &{integer}, found integral variable
+   |                       ^ expected &{integer}, found integer
    |
    = note: expected type `&{integer}`
               found type `{integer}`