2021-03-25 18:29:11 +00:00
|
|
|
error: wildcard match will also match any future added variants
|
2021-07-01 16:17:38 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:42:9
|
2019-01-25 16:42:11 +00:00
|
|
|
|
|
2019-02-18 22:55:16 +00:00
|
|
|
LL | _ => eprintln!("Not red"),
|
|
|
|
| ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
2019-01-25 16:42:11 +00:00
|
|
|
|
|
2020-01-31 19:21:10 +00:00
|
|
|
note: the lint level is defined here
|
2021-07-01 16:17:38 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:4:9
|
2019-02-18 22:55:16 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::wildcard_enum_match_arm)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-31 22:01:23 +00:00
|
|
|
|
2021-03-25 18:29:11 +00:00
|
|
|
error: wildcard match will also match any future added variants
|
2021-07-01 16:17:38 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:46:9
|
2019-01-31 22:01:23 +00:00
|
|
|
|
|
2019-02-18 22:55:16 +00:00
|
|
|
LL | _not_red => eprintln!("Not red"),
|
|
|
|
| ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`
|
2019-01-31 22:01:23 +00:00
|
|
|
|
2021-03-25 18:29:11 +00:00
|
|
|
error: wildcard match will also match any future added variants
|
2021-07-01 16:17:38 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:50:9
|
2019-01-31 22:01:23 +00:00
|
|
|
|
|
2019-02-18 22:55:16 +00:00
|
|
|
LL | not_red => format!("{:?}", not_red),
|
|
|
|
| ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`
|
2019-01-31 22:01:23 +00:00
|
|
|
|
2021-03-25 18:29:11 +00:00
|
|
|
error: wildcard match will also match any future added variants
|
2021-07-01 16:17:38 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:66:9
|
2019-01-25 16:42:11 +00:00
|
|
|
|
|
2019-02-18 22:55:16 +00:00
|
|
|
LL | _ => "No red",
|
|
|
|
| ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
2019-01-25 16:42:11 +00:00
|
|
|
|
2021-03-25 18:29:11 +00:00
|
|
|
error: wildcard matches known variants and will also match future added variants
|
2021-07-01 16:17:38 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:83:9
|
2019-12-22 02:13:39 +00:00
|
|
|
|
|
|
|
|
LL | _ => {},
|
2021-07-01 16:17:38 +00:00
|
|
|
| ^ help: try this: `ErrorKind::PermissionDenied | _`
|
2019-12-22 02:13:39 +00:00
|
|
|
|
2021-07-01 16:17:38 +00:00
|
|
|
error: wildcard matches known variants and will also match future added variants
|
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:101:13
|
|
|
|
|
|
|
|
|
LL | _ => (),
|
|
|
|
| ^ help: try this: `Enum::B | _`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2019-01-25 16:42:11 +00:00
|
|
|
|