You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 topub(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.
The text was updated successfully, but these errors were encountered: