We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This doesn't seem that unreasonable.
enum FooBar { Foo, Bar } impl Default for FooBar { fn default() -> Self { Self::Foo } }
However, it doesn't work. That's not so bad, but the error message is very unintuitive.
error: no associated item named `Foo` found for type 'hallo::salut::sunt_eu::un_haiduc::FooBar` in the current scope
I can see FooBar::Foo, it's right there. Telling me I can't use Self like this would be fine, but as it stands it's ludicrous.
The text was updated successfully, but these errors were encountered:
This might be related to #28556
Sorry, something went wrong.
Closing as duplicate of #26264
type_alias_enum_variants
Successfully merging a pull request may close this issue.
This doesn't seem that unreasonable.
However, it doesn't work. That's not so bad, but the error message is very unintuitive.
I can see FooBar::Foo, it's right there. Telling me I can't use Self like this would be fine, but as it stands it's ludicrous.
The text was updated successfully, but these errors were encountered: