Skip to content

Missing documentation around casting foreign non-exhaustive enums #1250

Description

@lambinoo

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.

Activity

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