]> git.lizzy.rs Git - rust.git/blob - tests/ui/wildcard_enum_match_arm.stderr
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / wildcard_enum_match_arm.stderr
1 error: wildcard match will miss any future added variants.
2   --> $DIR/wildcard_enum_match_arm.rs:26:9
3    |
4 LL |         _ => eprintln!("Not red"),
5    |         ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
6    |
7 note: lint level defined here
8   --> $DIR/wildcard_enum_match_arm.rs:1:9
9    |
10 LL | #![deny(clippy::wildcard_enum_match_arm)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: wildcard match will miss any future added variants.
14   --> $DIR/wildcard_enum_match_arm.rs:30:9
15    |
16 LL |         _not_red => eprintln!("Not red"),
17    |         ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`
18
19 error: wildcard match will miss any future added variants.
20   --> $DIR/wildcard_enum_match_arm.rs:34:9
21    |
22 LL |         not_red => format!("{:?}", not_red),
23    |         ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`
24
25 error: wildcard match will miss any future added variants.
26   --> $DIR/wildcard_enum_match_arm.rs:50:9
27    |
28 LL |         _ => "No red",
29    |         ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
30
31 error: aborting due to 4 previous errors
32