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

Handle univariant enums. #12

Closed
Sean1708 opened this issue Oct 17, 2015 · 2 comments
Closed

Handle univariant enums. #12

Sean1708 opened this issue Oct 17, 2015 · 2 comments

Comments

@Sean1708
Copy link
Owner

Currently you can't have #[repr(C)] univariant enums like the following:

#[repr(C)]
enum Foo {
    Bar,
}

The error message is rather cryptic because we automatically add #[repr(C)] (so it isn't shown in the error message), should we warn about this?

@Sean1708
Copy link
Owner Author

Similarly for zero-element enum.

@Sean1708
Copy link
Owner Author

Closed by fc4dba1.

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

No branches or pull requests

1 participant