Skip to content

internal error: entered unreachable code: trying to compare incompatible constructors Struct and Variant(EnumVariantContiguousIndex(0)) #19844

Closed
@Veykril

Description

@Veykril
Member
fn main() {
        struct S {}
        enum E { V() }
        let E::V() = &S {};
}

Finally managed to reduce this panic

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-patternpattern handling related thingsC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Veykril

      Issue actions

        internal error: entered unreachable code: trying to compare incompatible constructors Struct and Variant(EnumVariantContiguousIndex(0)) · Issue #19844 · rust-lang/rust-analyzer