Skip to content

Validity for enumerations with multiple variants. #3761

Description

@celinval

An enum must have a valid discriminant, and all fields of the variant indicated by that discriminant must be valid at their respective type.

https://doc.rust-lang.org/reference/behavior-considered-undefined.html

Activity

  1. added
    [C] Feature / Enhancement
    on Dec 19, 2024
  2. added
    [E] Unsupported UB
    Z-Kani Compiler
    on Nov 5, 2026
  3. added this to the Soundness milestone on Nov 5, 2026
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

    Z-Kani Compiler[C] Feature / Enhancement[E] Unsupported UB

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions