|
1 | 1 | error: wildcard match will also match any future added variants
|
2 |
| - --> $DIR/wildcard_enum_match_arm.rs:39:9 |
| 2 | + --> $DIR/wildcard_enum_match_arm.rs:42:9 |
3 | 3 | |
|
4 | 4 | LL | _ => eprintln!("Not red"),
|
5 | 5 | | ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
6 | 6 | |
|
7 | 7 | note: the lint level is defined here
|
8 |
| - --> $DIR/wildcard_enum_match_arm.rs:3:9 |
| 8 | + --> $DIR/wildcard_enum_match_arm.rs:4:9 |
9 | 9 | |
|
10 | 10 | LL | #![deny(clippy::wildcard_enum_match_arm)]
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 12 |
|
13 | 13 | error: wildcard match will also match any future added variants
|
14 |
| - --> $DIR/wildcard_enum_match_arm.rs:43:9 |
| 14 | + --> $DIR/wildcard_enum_match_arm.rs:46: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 | 19 | error: wildcard match will also match any future added variants
|
20 |
| - --> $DIR/wildcard_enum_match_arm.rs:47:9 |
| 20 | + --> $DIR/wildcard_enum_match_arm.rs:50: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 | 25 | error: wildcard match will also match any future added variants
|
26 |
| - --> $DIR/wildcard_enum_match_arm.rs:63:9 |
| 26 | + --> $DIR/wildcard_enum_match_arm.rs:66: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 | 31 | error: wildcard matches known variants and will also match future added variants
|
32 |
| - --> $DIR/wildcard_enum_match_arm.rs:80:9 |
| 32 | + --> $DIR/wildcard_enum_match_arm.rs:83:9 |
33 | 33 | |
|
34 | 34 | LL | _ => {},
|
35 | 35 | | ^ help: try this: `ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | ErrorKind::OutOfMemory | _`
|
|
0 commit comments