Skip to content

non-exhaustive match failure in alias::check_for_each #772

Closed
@jruderman

Description

@jruderman
fn main() { for each p in 1 {} }

rt: b1ff:main:main: upcall fail 'non-exhaustive match failure', ../src/comp/middle/alias.rs:336
rt: b1ff:main: domain main @0x200b40c root task failed

The proximate cause is that in comp::middle::alias::check_for_each, "alt call.node" has only an "ast::expr_call" arm.

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