Closed
Description
Code Example (playground):
enum MyEnum {
Tuple(i32),
Struct { s: i32 },
}
fn foo(en: MyEnum) {
match en {
MyEnum::Tuple => "",
MyEnum::Struct => "",
};
}
Currently we provide a "do you mean..." for the Struct
but not for the Tuple
. We probably should provide one for both.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.