Skip to content

Missing documentation around casting foreign non-exhaustive enums #1250

Closed

Description

After rust-lang/rust#91161 by rust-lang/rust#92744 got merged, the new behavior for non-exhaustive enums on cast should be documented.

use othercrate::NonExhaustiveEnum;

let _ = NonExhaustiveEnum::default() as u8; // This is a compile error now

Non exhaustive type documention is not reflecting that right now.

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

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