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

Remove "Variant visibility" in items/enumerations #1211

Open
GreenYun opened this issue May 9, 2022 · 1 comment
Open

Remove "Variant visibility" in items/enumerations #1211

GreenYun opened this issue May 9, 2022 · 1 comment

Comments

@GreenYun
Copy link

GreenYun commented May 9, 2022

According to rust-lang/rust#28442 , visibility modifier for variant will lead to compilation error.

Consider removing the section or adding some notes about that.

@ehuss
Copy link
Contributor

ehuss commented May 9, 2022

Enum variant visibility was added in rust-lang/rust#66183. The section Variant visibility explains that it is syntactically valid, but rejected during validation. Can you say more about why it appears wrong?

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

2 participants