-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)
Milestone
Description
tag ordered_pair_list {
cons({low: int, high: int} : lt(*.low, *.high), @ordered_pair_list);
nil;
}
pure fn lt(x: int, y: int) -> bool { ret x < y; }
fn main() { }
Gives me
tmp.rs:2:52: 2:53 error: expecting (, found @
tmp.rs:2 cons({low: int, high: int} : lt(*.low, *.high), @ordered_pair_list);
But if I take out the ", @ordered_pair_list" part, the parser accepts it (and I hit #970 instead).
Are inner constraints valid?
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)