2019-01-25 16:42:11 +00:00
|
|
|
error: wildcard match will miss any future added variants.
|
2019-09-21 05:26:18 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:29: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
|
|
|
|
|
2019-02-18 22:55:16 +00:00
|
|
|
note: lint level defined here
|
2019-09-21 05:26:18 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:3:9
|
2019-02-18 22:55:16 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::wildcard_enum_match_arm)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-31 22:01:23 +00:00
|
|
|
|
|
|
|
error: wildcard match will miss any future added variants.
|
2019-09-21 05:26:18 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:33: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
|
|
|
|
|
|
|
error: wildcard match will miss any future added variants.
|
2019-09-21 05:26:18 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:37: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
|
|
|
|
|
|
|
error: wildcard match will miss any future added variants.
|
2019-09-21 05:26:18 +00:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:53: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
|
|
|
|
2019-01-31 22:01:23 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2019-01-25 16:42:11 +00:00
|
|
|
|