about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/wildcard_enum_match_arm.stderr
blob: d0929989494a48a9d588759d9794dd853e2a233b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:39:9
   |
LL |         _ => eprintln!("Not red"),
   |         ^ help: try: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
   |
note: the lint level is defined here
  --> tests/ui/wildcard_enum_match_arm.rs:2:9
   |
LL | #![deny(clippy::wildcard_enum_match_arm)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:44:9
   |
LL |         _not_red => eprintln!("Not red"),
   |         ^^^^^^^^ help: try: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`

error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:49:9
   |
LL |         not_red => format!("{:?}", not_red),
   |         ^^^^^^^ help: try: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`

error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:66:9
   |
LL |         _ => "No red",
   |         ^ help: try: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`

error: wildcard matches known variants and will also match future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:84:9
   |
LL |         _ => {},
   |         ^ help: try: `ErrorKind::PermissionDenied | _`

error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:103:13
   |
LL |             _ => (),
   |             ^ help: try: `Enum::B | Enum::C(_) | Enum::D(..) | Enum::E { .. }`

error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:118:13
   |
LL |             _ => (),
   |             ^ help: try: `Enum::B | Enum::__Private`

error: wildcard match will also match any future added variants
  --> tests/ui/wildcard_enum_match_arm.rs:133:9
   |
LL |         r#type => {},
   |         ^^^^^^ help: try: `r#type @ Foo::B | r#type @ Foo::C`

error: aborting due to 8 previous errors