]> git.lizzy.rs Git - rust.git/blob - tests/ui/match_wildcard_for_single_variants.stderr
Improvements to `match_wildcard_for_single_variants` and `wildcard_enum_match_arm...
[rust.git] / tests / ui / match_wildcard_for_single_variants.stderr
1 error: match on non-exhaustive enum doesn't explicitly match all known variants
2   --> $DIR/match_wildcard_for_single_variants.rs:24:13
3    |
4 LL |             _ => (),
5    |             ^ help: try this: `Self::Rgb(..)`
6    |
7    = note: `-D clippy::match-wildcard-for-single-variants` implied by `-D warnings`
8
9 error: match on non-exhaustive enum doesn't explicitly match all known variants
10   --> $DIR/match_wildcard_for_single_variants.rs:34:9
11    |
12 LL |         _ => {},
13    |         ^ help: try this: `Foo::C`
14
15 error: match on non-exhaustive enum doesn't explicitly match all known variants
16   --> $DIR/match_wildcard_for_single_variants.rs:44:9
17    |
18 LL |         _ => {},
19    |         ^ help: try this: `Color::Blue`
20
21 error: match on non-exhaustive enum doesn't explicitly match all known variants
22   --> $DIR/match_wildcard_for_single_variants.rs:52:9
23    |
24 LL |         _ => {},
25    |         ^ help: try this: `Color::Blue`
26
27 error: match on non-exhaustive enum doesn't explicitly match all known variants
28   --> $DIR/match_wildcard_for_single_variants.rs:58:9
29    |
30 LL |         _ => {},
31    |         ^ help: try this: `Color::Blue`
32
33 error: match on non-exhaustive enum doesn't explicitly match all known variants
34   --> $DIR/match_wildcard_for_single_variants.rs:75:9
35    |
36 LL |         &_ => (),
37    |         ^^ help: try this: `Color::Blue`
38
39 error: match on non-exhaustive enum doesn't explicitly match all known variants
40   --> $DIR/match_wildcard_for_single_variants.rs:84:9
41    |
42 LL |         _ => (),
43    |         ^ help: try this: `C::Blue`
44
45 error: match on non-exhaustive enum doesn't explicitly match all known variants
46   --> $DIR/match_wildcard_for_single_variants.rs:91:9
47    |
48 LL |         _ => (),
49    |         ^ help: try this: `Color::Blue`
50
51 error: aborting due to 8 previous errors
52