-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Description
Since this works:
match *self {
MyEnum::Variant1 => (),
MyEnum::Variant2 => (),
}I expected this to work, when in the context of that enum's implementation:
match *self {
Self::Variant1 => (),
Self::Variant2 => (),
}but instead you get the error: error[E0599]: no associated item named `Variant1` found for type `MyEnum` in the current scope which seems to suggest the compiler is indeed looking at MyEnum but is one step away from making the association.
Metadata
Metadata
Assignees
Labels
No labels