]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5100.stderr
Reword label as per review comment
[rust.git] / src / test / ui / issues / issue-5100.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-5100.rs:8:9
3    |
4 LL |         A::B => (),
5    |         ^^^^ expected tuple, found enum `A`
6    |
7    = note: expected type `(bool, bool)`
8               found type `A`
9
10 error[E0308]: mismatched types
11   --> $DIR/issue-5100.rs:17:9
12    |
13 LL |         (true, false, false) => ()
14    |         ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
15    |
16    = note: expected type `(bool, bool)`
17               found type `(_, _, _)`
18
19 error[E0308]: mismatched types
20   --> $DIR/issue-5100.rs:25:9
21    |
22 LL |         (true, false, false) => ()
23    |         ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
24    |
25    = note: expected type `(bool, bool)`
26               found type `(_, _, _)`
27
28 error[E0308]: mismatched types
29   --> $DIR/issue-5100.rs:33:9
30    |
31 LL |     match (true, false) {
32    |           ------------- this match expression has type `(bool, bool)`
33 LL |         box (true, false) => ()
34    |         ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box`
35    |
36    = note: expected type `(bool, bool)`
37               found type `std::boxed::Box<_>`
38
39 error[E0308]: mismatched types
40   --> $DIR/issue-5100.rs:40:9
41    |
42 LL |         &(true, false) => ()
43    |         ^^^^^^^^^^^^^^ expected tuple, found reference
44    |
45    = note: expected type `(bool, bool)`
46               found type `&_`
47
48 error[E0618]: expected function, found `(char, char)`
49   --> $DIR/issue-5100.rs:48:14
50    |
51 LL |       let v = [('a', 'b')   //~ ERROR expected function, found `(char, char)`
52    |  ______________-^^^^^^^^^
53 LL | |              ('c', 'd'),
54    | |_______________________- call expression requires function
55
56 error[E0308]: mismatched types
57   --> $DIR/issue-5100.rs:55:19
58    |
59 LL |     let x: char = true; //~  ERROR mismatched types
60    |                   ^^^^ expected char, found bool
61
62 error: aborting due to 7 previous errors
63
64 Some errors occurred: E0308, E0618.
65 For more information about an error, try `rustc --explain E0308`.