2018-02-08 03:35:35 +00:00
|
|
|
error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
|
|
|
|
--> $DIR/E0023.rs:20:9
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | Fruit::Apple(a) => {}, //~ ERROR E0023
|
2018-02-08 03:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ expected 2 fields, found 1
|
|
|
|
|
|
|
|
error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
|
|
|
|
--> $DIR/E0023.rs:21:9
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | Fruit::Apple(a, b, c) => {}, //~ ERROR E0023
|
2018-02-08 03:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 3
|
|
|
|
|
|
|
|
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
|
|
|
|
--> $DIR/E0023.rs:22:9
|
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | Fruit::Pear(1, 2) => {}, //~ ERROR E0023
|
2018-02-08 03:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ expected 1 field, found 2
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-02-19 20:40:25 +00:00
|
|
|
If you want more information on this error, try using "rustc --explain E0023"
|