]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-pattern-field-mismatch.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / match / match-pattern-field-mismatch.stderr
1 error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
2   --> $DIR/match-pattern-field-mismatch.rs:10:22
3    |
4 LL |         Rgb(usize, usize, usize),
5    |             -----  -----  ----- tuple variant has 3 fields
6 ...
7 LL |           Color::Rgb(_, _) => { }
8    |                      ^  ^ expected 3 fields, found 2
9    |
10 help: use `_` to explicitly ignore each field
11    |
12 LL |           Color::Rgb(_, _, _) => { }
13    |                          +++
14 help: use `..` to ignore all fields
15    |
16 LL |           Color::Rgb(..) => { }
17    |                      ~~
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0023`.