1 error[E0308]: mismatched types
2 --> $DIR/issue-5100.rs:8:9
4 LL | match (true, false) {
5 | ------------- this expression has type `(bool, bool)`
7 | ^^^^ expected tuple, found enum `A`
9 = note: expected tuple `(bool, bool)`
12 error[E0308]: mismatched types
13 --> $DIR/issue-5100.rs:17:9
15 LL | match (true, false) {
16 | ------------- this expression has type `(bool, bool)`
17 LL | (true, false, false) => ()
18 | ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
20 = note: expected tuple `(bool, bool)`
21 found tuple `(_, _, _)`
23 error[E0308]: mismatched types
24 --> $DIR/issue-5100.rs:25:9
26 LL | match (true, false) {
27 | ------------- this expression has type `(bool, bool)`
28 LL | (true, false, false) => ()
29 | ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
31 = note: expected tuple `(bool, bool)`
32 found tuple `(_, _, _)`
34 error[E0308]: mismatched types
35 --> $DIR/issue-5100.rs:33:9
37 LL | match (true, false) {
38 | ------------- this expression has type `(bool, bool)`
39 LL | box (true, false) => ()
40 | ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box`
42 = note: expected tuple `(bool, bool)`
43 found struct `std::boxed::Box<_>`
45 error[E0308]: mismatched types
46 --> $DIR/issue-5100.rs:40:9
48 LL | &(true, false) => ()
49 | ^^^^^^^^^^^^^^ expected tuple, found reference
51 = note: expected tuple `(bool, bool)`
54 error[E0618]: expected function, found `(char, char)`
55 --> $DIR/issue-5100.rs:48:14
57 LL | let v = [('a', 'b')
58 | ______________-^^^^^^^^^
60 | |_______________________- call expression requires function
62 error[E0308]: mismatched types
63 --> $DIR/issue-5100.rs:55:19
65 LL | let x: char = true;
66 | ---- ^^^^ expected `char`, found `bool`
68 | expected due to this
70 error: aborting due to 7 previous errors
72 Some errors have detailed explanations: E0308, E0618.
73 For more information about an error, try `rustc --explain E0308`.