2021-03-25 13:29:11 -05:00
|
|
|
error: wildcard match will also match any future added variants
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:39:9
|
2019-01-25 10:42:11 -06:00
|
|
|
|
|
2019-02-18 16:55:16 -06:00
|
|
|
LL | _ => eprintln!("Not red"),
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^ help: try: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
2019-01-25 10:42:11 -06:00
|
|
|
|
|
2020-01-31 13:21:10 -06:00
|
|
|
note: the lint level is defined here
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:2:9
|
2019-02-18 16:55:16 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::wildcard_enum_match_arm)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-31 16:01:23 -06:00
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: wildcard match will also match any future added variants
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:43:9
|
2019-01-31 16:01:23 -06:00
|
|
|
|
|
2019-02-18 16:55:16 -06:00
|
|
|
LL | _not_red => eprintln!("Not red"),
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^ help: try: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`
|
2019-01-31 16:01:23 -06:00
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: wildcard match will also match any future added variants
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:47:9
|
2019-01-31 16:01:23 -06:00
|
|
|
|
|
2019-02-18 16:55:16 -06:00
|
|
|
LL | not_red => format!("{:?}", not_red),
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^ help: try: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`
|
2019-01-31 16:01:23 -06:00
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: wildcard match will also match any future added variants
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:63:9
|
2019-01-25 10:42:11 -06:00
|
|
|
|
|
2019-02-18 16:55:16 -06:00
|
|
|
LL | _ => "No red",
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^ help: try: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
2019-01-25 10:42:11 -06:00
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: wildcard matches known variants and will also match future added variants
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:80:9
|
2019-12-21 20:13:39 -06:00
|
|
|
|
|
|
|
|
LL | _ => {},
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^ help: try: `ErrorKind::PermissionDenied | _`
|
2019-12-21 20:13:39 -06:00
|
|
|
|
2023-01-28 19:45:57 -06:00
|
|
|
error: wildcard match will also match any future added variants
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:98:13
|
2021-07-01 05:35:16 -05:00
|
|
|
|
|
|
|
|
LL | _ => (),
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^ help: try: `Enum::B | Enum::__Private`
|
2021-07-01 05:35:16 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2019-01-25 10:42:11 -06:00
|
|
|
|