Skip to content
New issue

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

Add support for enums #3

Closed
hannobraun opened this issue Mar 22, 2019 · 0 comments · Fixed by #13
Closed

Add support for enums #3

hannobraun opened this issue Mar 22, 2019 · 0 comments · Fixed by #13

Comments

@hannobraun
Copy link

I'm getting the following error when trying to derive Hash32 for an enum:

error: proc-macro derive panicked
   --> src/mac.rs:464:40
    |
464 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)]
    |                                        ^^^^^^
    |
    = help: message: #[derive(Hash)] doesn't currently support `enum` and `union`

It would be very useful to have support for enums!

@hannobraun hannobraun changed the title Add support for unions Add support for enums Mar 22, 2019
hannobraun added a commit to hannobraun/embedded-test-stand that referenced this issue Oct 7, 2020
What I actually want is to derive `hash32::Hash`, but that doesn't
support enums (rust-embedded-community/hash32#3). This will do
as a workaround.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant