Skip to content

Commit 15d33f7

Browse files
mbrubeckbrson
authored andcommitted
Fix parse error in constrained-type-missing-check.rs
1 parent f70a894 commit 15d33f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/constrained-type-missing-check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

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

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

0 commit comments

Comments
 (0)