1 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
2 --> $DIR/E0023.rs:11:22
4 LL | Apple(String, String),
5 | ------ ------ tuple variant has 2 fields
7 LL | Fruit::Apple(a) => {},
8 | ^ expected 2 fields, found 1
10 help: use `_` to explicitly ignore each field
12 LL | Fruit::Apple(a, _) => {},
15 error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
16 --> $DIR/E0023.rs:12:22
18 LL | Apple(String, String),
19 | ------ ------ tuple variant has 2 fields
21 LL | Fruit::Apple(a, b, c) => {},
22 | ^ ^ ^ expected 2 fields, found 3
24 error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
25 --> $DIR/E0023.rs:13:21
28 | --- tuple variant has 1 field
30 LL | Fruit::Pear(1, 2) => {},
31 | ^ ^ expected 1 field, found 2
33 error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
34 --> $DIR/E0023.rs:14:23
36 LL | Orange((String, String)),
37 | ---------------- tuple variant has 1 field
39 LL | Fruit::Orange(a, b) => {},
40 | ^ ^ expected 1 field, found 2
42 help: missing parentheses
44 LL | Fruit::Orange((a, b)) => {},
47 error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 1 field
48 --> $DIR/E0023.rs:15:9
51 | -- tuple variant has 1 field
53 LL | Fruit::Banana() => {},
54 | ^^^^^^^^^^^^^^^ expected 1 field, found 0
56 help: missing parentheses
58 LL | Fruit::Banana(()) => {},
61 error: aborting due to 5 previous errors
63 For more information about this error, try `rustc --explain E0023`.