Skip to content

Clarify non_exhaustive behavior with unit structs #1097

Closed
@ehuss

Description

@ehuss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions