2018-08-08 12:28:26 +00:00
|
|
|
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
|
2021-08-18 23:13:52 +00:00
|
|
|
--> $DIR/match-pattern-field-mismatch.rs:10:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-09-05 02:04:26 +00:00
|
|
|
LL | Rgb(usize, usize, usize),
|
2021-08-18 23:13:52 +00:00
|
|
|
| ----- ----- ----- tuple variant has 3 fields
|
2019-09-05 02:04:26 +00:00
|
|
|
...
|
2018-12-17 03:21:47 +00:00
|
|
|
LL | Color::Rgb(_, _) => { }
|
2021-08-25 21:40:06 +00:00
|
|
|
| ^ ^ expected 3 fields, found 2
|
2021-01-13 03:06:20 +00:00
|
|
|
|
|
|
|
|
help: use `_` to explicitly ignore each field
|
|
|
|
|
|
|
|
|
LL | Color::Rgb(_, _, _) => { }
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++
|
2021-01-13 04:39:51 +00:00
|
|
|
help: use `..` to ignore all fields
|
|
|
|
|
|
|
|
|
LL | Color::Rgb(..) => { }
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0023`.
|