fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields 2 --> $DIR/E0023.rs:11:22 3 | 4LL | Apple(String, String), 5 | ------ ------ tuple variant has 2 fields 6... 7LL | Fruit::Apple(a) => {}, 8 | ^ expected 2 fields, found 1 9 | 10help: use `_` to explicitly ignore each field 11 | 12LL | Fruit::Apple(a, _) => {}, 13 | +++ 14 15error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields 16 --> $DIR/E0023.rs:12:22 17 | 18LL | Apple(String, String), 19 | ------ ------ tuple variant has 2 fields 20... 21LL | Fruit::Apple(a, b, c) => {}, 22 | ^ ^ ^ expected 2 fields, found 3 23 24error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field 25 --> $DIR/E0023.rs:13:21 26 | 27LL | Pear(u32), 28 | --- tuple variant has 1 field 29... 30LL | Fruit::Pear(1, 2) => {}, 31 | ^ ^ expected 1 field, found 2 32 33error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field 34 --> $DIR/E0023.rs:14:23 35 | 36LL | Orange((String, String)), 37 | ---------------- tuple variant has 1 field 38... 39LL | Fruit::Orange(a, b) => {}, 40 | ^ ^ expected 1 field, found 2 41 | 42help: missing parentheses 43 | 44LL | Fruit::Orange((a, b)) => {}, 45 | + + 46 47error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 1 field 48 --> $DIR/E0023.rs:15:9 49 | 50LL | Banana(()), 51 | -- tuple variant has 1 field 52... 53LL | Fruit::Banana() => {}, 54 | ^^^^^^^^^^^^^^^ expected 1 field, found 0 55 | 56help: missing parentheses 57 | 58LL | Fruit::Banana(()) => {}, 59 | + + 60 61error: aborting due to 5 previous errors 62 63For more information about this error, try `rustc --explain E0023`.