rust/tests/ui/wildcard_enum_match_arm.stderr
Daniel Wagner-Hall 422c9a0fa2 wildcard_enum_match_arm gives suggestions
And is also more robust
2019-02-18 22:56:43 +00:00

28 lines
1,007 B
Text

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