Skip to content

'non-exhaustive match failure' in fold_ty (inner constraint) #970

Closed
@jruderman

Description

@jruderman
tag maybe_ordered_pair {
    yes({low: int, high: int} : less_than(*.low, *.high));
    no;
}
pure fn less_than(x: int, y: int) -> bool { ret x < y; }
fn main() { }

upcall fail 'non-exhaustive match failure', ../src/comp/middle/ty.rs:671

I guess the alt in fold_ty is missing ty_constr

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