Skip to content

Missing documentation around casting foreign non-exhaustive enums #1250

Closed
@lambinoo

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.

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