Skip to content

ICE matching struct #4849

Closed
Closed

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

Activity

  1. added a commit that references this issue on Feb 20, 2013
    edade21
  2. added a commit that references this issue on Feb 16, 2026
  3. added a commit that references this issue on Aug 21, 2026
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

    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