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