]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-pattern-field-mismatch-2.stderr
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / match / match-pattern-field-mismatch-2.stderr
1 error[E0532]: expected tuple struct or tuple variant, found unit variant `Color::NoColor`
2   --> $DIR/match-pattern-field-mismatch-2.rs:12:11
3    |
4 LL |         NoColor,
5    |         ------- `Color::NoColor` defined here
6 ...
7 LL |           Color::NoColor(_) => { }
8    |           ^^^^^^^^^^^^^^^^^ help: use this syntax instead: `Color::NoColor`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0532`.