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

Clarify non_exhaustive behavior with unit structs #1097

Closed
ehuss opened this issue Oct 20, 2021 · 0 comments · Fixed by #1491
Closed

Clarify non_exhaustive behavior with unit structs #1097

ehuss opened this issue Oct 20, 2021 · 0 comments · Fixed by #1491
Labels
A-attributes Area: Attributes

Comments

@ehuss
Copy link
Contributor

ehuss commented Oct 20, 2021

The current page on #[non_exhaustive] doesn't really say much about unit structs. I think it could use some clarification. For example, the visibility of the unit struct const is lowered to pub(crate) like tuple struct constructors.

The RFC has more detail. It might be good to also comb the RFC and think about anything else missing from the non_exhaustive docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant