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