Skip to content

Remove "Variant visibility" in items/enumerations #1211

Closed as not planned
Closed as not planned

Description

@GreenYun

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.

Activity

  1. ehuss commented on May 9, 2022

    @ehuss
    Contributor

    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?

  2. ehuss commented on Aug 25, 2025

    @ehuss
    Contributor

    Without more information, I'm going to close as there is a section describing the behavior for variant visibility. Please let us know if there is anything missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions