1 error[E0308]: mismatched types
2 --> $DIR/issue-5100.rs:8:9
5 | ^^^^ expected tuple, found enum `A`
7 = note: expected type `(bool, bool)`
10 error[E0308]: mismatched types
11 --> $DIR/issue-5100.rs:17:9
13 LL | (true, false, false) => ()
14 | ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
16 = note: expected type `(bool, bool)`
17 found type `(_, _, _)`
19 error[E0308]: mismatched types
20 --> $DIR/issue-5100.rs:25:9
22 LL | (true, false, false) => ()
23 | ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
25 = note: expected type `(bool, bool)`
26 found type `(_, _, _)`
28 error[E0308]: mismatched types
29 --> $DIR/issue-5100.rs:33:9
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`
36 = note: expected type `(bool, bool)`
37 found type `std::boxed::Box<_>`
39 error[E0308]: mismatched types
40 --> $DIR/issue-5100.rs:40:9
42 LL | &(true, false) => ()
43 | ^^^^^^^^^^^^^^ expected tuple, found reference
45 = note: expected type `(bool, bool)`
48 error[E0618]: expected function, found `(char, char)`
49 --> $DIR/issue-5100.rs:48:14
51 LL | let v = [('a', 'b')
52 | ______________-^^^^^^^^^
54 | |_______________________- call expression requires function
56 error[E0308]: mismatched types
57 --> $DIR/issue-5100.rs:55:19
59 LL | let x: char = true;
60 | ^^^^ expected char, found bool
62 error: aborting due to 7 previous errors
64 Some errors occurred: E0308, E0618.
65 For more information about an error, try `rustc --explain E0308`.