1
- error: wildcard match will miss any future added variants.
1
+ error: wildcard match will miss any future added variants
2
2
--> $DIR/wildcard_enum_match_arm.rs:31:9
3
3
|
4
4
LL | _ => eprintln!("Not red"),
@@ -10,25 +10,25 @@ note: lint level defined here
10
10
LL | #![deny(clippy::wildcard_enum_match_arm)]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
13
- error: wildcard match will miss any future added variants.
13
+ error: wildcard match will miss any future added variants
14
14
--> $DIR/wildcard_enum_match_arm.rs:35:9
15
15
|
16
16
LL | _not_red => eprintln!("Not red"),
17
17
| ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`
18
18
19
- error: wildcard match will miss any future added variants.
19
+ error: wildcard match will miss any future added variants
20
20
--> $DIR/wildcard_enum_match_arm.rs:39:9
21
21
|
22
22
LL | not_red => format!("{:?}", not_red),
23
23
| ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`
24
24
25
- error: wildcard match will miss any future added variants.
25
+ error: wildcard match will miss any future added variants
26
26
--> $DIR/wildcard_enum_match_arm.rs:55:9
27
27
|
28
28
LL | _ => "No red",
29
29
| ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
30
30
31
- error: match on non-exhaustive enum doesn't explicitly match all known variants.
31
+ error: match on non-exhaustive enum doesn't explicitly match all known variants
32
32
--> $DIR/wildcard_enum_match_arm.rs:72:9
33
33
|
34
34
LL | _ => {},
0 commit comments