2019-12-22 12:51:39 +01:00
|
|
|
error: wildcard match will miss any future added variants
|
2019-12-27 05:42:28 +01:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:37:9
|
2019-01-25 17:42:11 +01:00
|
|
|
|
|
2019-02-18 23:55:16 +01:00
|
|
|
LL | _ => eprintln!("Not red"),
|
|
|
|
| ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
2019-01-25 17:42:11 +01:00
|
|
|
|
|
2019-02-18 23:55:16 +01:00
|
|
|
note: lint level defined here
|
2019-09-21 07:26:18 +02:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:3:9
|
2019-02-18 23:55:16 +01:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::wildcard_enum_match_arm)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-31 23:01:23 +01:00
|
|
|
|
2019-12-22 12:51:39 +01:00
|
|
|
error: wildcard match will miss any future added variants
|
2019-12-27 05:42:28 +01:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:41:9
|
2019-01-31 23:01:23 +01:00
|
|
|
|
|
2019-02-18 23:55:16 +01: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 23:01:23 +01:00
|
|
|
|
2019-12-22 12:51:39 +01:00
|
|
|
error: wildcard match will miss any future added variants
|
2019-12-27 05:42:28 +01:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:45:9
|
2019-01-31 23:01:23 +01:00
|
|
|
|
|
2019-02-18 23:55:16 +01: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 23:01:23 +01:00
|
|
|
|
2019-12-22 12:51:39 +01:00
|
|
|
error: wildcard match will miss any future added variants
|
2019-12-27 05:42:28 +01:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:61:9
|
2019-01-25 17:42:11 +01:00
|
|
|
|
|
2019-02-18 23:55:16 +01:00
|
|
|
LL | _ => "No red",
|
|
|
|
| ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
2019-01-25 17:42:11 +01:00
|
|
|
|
2019-12-22 12:51:39 +01:00
|
|
|
error: match on non-exhaustive enum doesn't explicitly match all known variants
|
2019-12-27 05:42:28 +01:00
|
|
|
--> $DIR/wildcard_enum_match_arm.rs:78:9
|
2019-12-22 03:13:39 +01:00
|
|
|
|
|
|
|
|
LL | _ => {},
|
|
|
|
| ^ help: try this: `std::io::ErrorKind::PermissionDenied | std::io::ErrorKind::ConnectionRefused | std::io::ErrorKind::ConnectionReset | std::io::ErrorKind::ConnectionAborted | std::io::ErrorKind::NotConnected | std::io::ErrorKind::AddrInUse | std::io::ErrorKind::AddrNotAvailable | std::io::ErrorKind::BrokenPipe | std::io::ErrorKind::AlreadyExists | std::io::ErrorKind::WouldBlock | std::io::ErrorKind::InvalidInput | std::io::ErrorKind::InvalidData | std::io::ErrorKind::TimedOut | std::io::ErrorKind::WriteZero | std::io::ErrorKind::Interrupted | std::io::ErrorKind::Other | std::io::ErrorKind::UnexpectedEof | _`
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2019-01-25 17:42:11 +01:00
|
|
|
|