rust/tests/ui/wildcard_enum_match_arm.stderr

29 lines
1007 B
Plaintext
Raw Normal View History

error: wildcard match will miss any future added variants.
--> $DIR/wildcard_enum_match_arm.rs:13:9
|
LL | _ => "Could be",
| ^ help: try this: `Maybe::Probably(..) | Maybe::None`
|
= note: `-D clippy::wildcard-enum-match-arm` implied by `-D warnings`
error: wildcard match will miss any future added variants.
--> $DIR/wildcard_enum_match_arm.rs:20:9
|
LL | _other => "Could be",
| ^^^^^^ help: try this: `_other @ Maybe::Some(..) | _other @ Maybe::Probably(..)`
error: wildcard match will miss any future added variants.
--> $DIR/wildcard_enum_match_arm.rs:27:9
|
LL | n => format!("{:?}", n),
| ^ help: try this: `n @ Maybe::Probably(..) | n @ Maybe::None`
error: wildcard match will miss any future added variants.
--> $DIR/wildcard_enum_match_arm.rs:41:9
|
LL | _ => "Who knows",
| ^ help: try this: `Maybe::Some(..) | Maybe::Probably(..) | Maybe::None`
error: aborting due to 4 previous errors