Skip to content

Commit

Permalink
Fix parse error in constrained-type-missing-check.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck authored and brson committed Oct 18, 2011
1 parent f70a894 commit 15d33f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/constrained-type-missing-check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

pure fn less_than(x: int, y: int) -> bool { ret x < y; }

type ordered_range = {low: int, high: int} : less_than(low, high);
type ordered_range = {low: int, high: int} : less_than(*.low, *.high);

fn main() {
// Should fail to compile, b/c we're not doing the check
Expand All @@ -13,4 +13,4 @@ fn main() {
let b: int = 2;
let c: ordered_range = {low: a, high: b};
log c.low;
}
}

0 comments on commit 15d33f7

Please sign in to comment.