Skip to content

ICE matching struct #4849

Closed
Closed
@jdm

Description

@jdm
rusti> struct Foo { a: uint }
()
rusti> enum Foobar { A(int) }
()
rusti> match Foo { a: 5 } { A(_) => {} _ => {} }
error: internal compiler error: extract_variant_args: pattern has non-enum type

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions