]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-5100.stderr
Reword label as per review comment
[rust.git] / src / test / ui / issues / issue-5100.stderr
index 305ee2f547145131cc913df95709f07beefaff16..0a918a789703e5f0e66725373b2e78026dfe3575 100644 (file)
@@ -1,5 +1,5 @@
 error[E0308]: mismatched types
-  --> $DIR/issue-5100.rs:18:9
+  --> $DIR/issue-5100.rs:8:9
    |
 LL |         A::B => (),
    |         ^^^^ expected tuple, found enum `A`
@@ -8,7 +8,7 @@ LL |         A::B => (),
               found type `A`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-5100.rs:27:9
+  --> $DIR/issue-5100.rs:17:9
    |
 LL |         (true, false, false) => ()
    |         ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
@@ -17,7 +17,7 @@ LL |         (true, false, false) => ()
               found type `(_, _, _)`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-5100.rs:35:9
+  --> $DIR/issue-5100.rs:25:9
    |
 LL |         (true, false, false) => ()
    |         ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
@@ -26,8 +26,10 @@ LL |         (true, false, false) => ()
               found type `(_, _, _)`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-5100.rs:43:9
+  --> $DIR/issue-5100.rs:33:9
    |
+LL |     match (true, false) {
+   |           ------------- this match expression has type `(bool, bool)`
 LL |         box (true, false) => ()
    |         ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box`
    |
@@ -35,7 +37,7 @@ LL |         box (true, false) => ()
               found type `std::boxed::Box<_>`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-5100.rs:50:9
+  --> $DIR/issue-5100.rs:40:9
    |
 LL |         &(true, false) => ()
    |         ^^^^^^^^^^^^^^ expected tuple, found reference
@@ -44,7 +46,7 @@ LL |         &(true, false) => ()
               found type `&_`
 
 error[E0618]: expected function, found `(char, char)`
-  --> $DIR/issue-5100.rs:58:14
+  --> $DIR/issue-5100.rs:48:14
    |
 LL |       let v = [('a', 'b')   //~ ERROR expected function, found `(char, char)`
    |  ______________-^^^^^^^^^
@@ -52,7 +54,7 @@ LL | |              ('c', 'd'),
    | |_______________________- call expression requires function
 
 error[E0308]: mismatched types
-  --> $DIR/issue-5100.rs:65:19
+  --> $DIR/issue-5100.rs:55:19
    |
 LL |     let x: char = true; //~  ERROR mismatched types
    |                   ^^^^ expected char, found bool