2018-02-07 19:35:35 -08:00
|
|
|
error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
|
2019-09-19 22:12:05 +05:30
|
|
|
--> $DIR/E0023.rs:11:9
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2019-09-04 19:04:26 -07:00
|
|
|
LL | Apple(String, String),
|
|
|
|
| --------------------- tuple variant defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Fruit::Apple(a) => {},
|
2018-02-07 19:35:35 -08:00
|
|
|
| ^^^^^^^^^^^^^^^ expected 2 fields, found 1
|
|
|
|
|
|
|
|
error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
|
2019-09-19 22:12:05 +05:30
|
|
|
--> $DIR/E0023.rs:12:9
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2019-09-04 19:04:26 -07:00
|
|
|
LL | Apple(String, String),
|
|
|
|
| --------------------- tuple variant defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Fruit::Apple(a, b, c) => {},
|
2018-02-07 19:35:35 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 3
|
|
|
|
|
|
|
|
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
|
2019-09-19 22:12:05 +05:30
|
|
|
--> $DIR/E0023.rs:13:9
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2019-09-04 19:04:26 -07:00
|
|
|
LL | Pear(u32),
|
|
|
|
| --------- tuple variant defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Fruit::Pear(1, 2) => {},
|
2018-02-07 19:35:35 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^ expected 1 field, found 2
|
|
|
|
|
2019-09-19 22:12:05 +05:30
|
|
|
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
|
|
|
|
--> $DIR/E0023.rs:14:9
|
|
|
|
|
|
|
|
|
LL | Orange((String, String)),
|
|
|
|
| ------------------------ tuple variant defined here
|
|
|
|
...
|
|
|
|
LL | Fruit::Orange(a, b) => {},
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2
|
|
|
|
help: missing parenthesis
|
|
|
|
|
|
|
|
|
LL | Fruit::Orange((a, b)) => {},
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0023`.
|