You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enumEnum{Variant,}implEnum{fnchoose() -> Self{Self::Variant//~ ERROR no variant named `Variant` found for type `Enum` in the current scope}}
I'm not sure if this is supposed to be allowed or not, but the error message is incorrect. Is there an up-to-date document describing all the places Self is allowed instead of a type name?
The text was updated successfully, but these errors were encountered:
I'm not sure if this is supposed to be allowed or not, but the error message is incorrect. Is there an up-to-date document describing all the places
Self
is allowed instead of a type name?The text was updated successfully, but these errors were encountered: