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 | box (true, false) => ()
32 | ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box`
34 = note: expected type `(bool, bool)`
35 found type `std::boxed::Box<_>`
37 error[E0308]: mismatched types
38 --> $DIR/issue-5100.rs:40:9
40 LL | &(true, false) => ()
41 | ^^^^^^^^^^^^^^ expected tuple, found reference
43 = note: expected type `(bool, bool)`
46 error[E0618]: expected function, found `(char, char)`
47 --> $DIR/issue-5100.rs:48:14
49 LL | let v = [('a', 'b') //~ ERROR expected function, found `(char, char)`
50 | ______________-^^^^^^^^^
52 | |_______________________- call expression requires function
54 error[E0308]: mismatched types
55 --> $DIR/issue-5100.rs:55:19
57 LL | let x: char = true; //~ ERROR mismatched types
58 | ^^^^ expected char, found bool
60 error: aborting due to 7 previous errors
62 Some errors occurred: E0308, E0618.
63 For more information about an error, try `rustc --explain E0308`.