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