Skip to content

Commit b2f3992

Browse files
mbrubeckbrson
authored andcommitted
---
yaml --- r: 5851 b: refs/heads/master c: 15d33f7 h: refs/heads/master i: 5849: dbe5ae8 5847: 949a3cc v: v3
1 parent 6b8e816 commit b2f3992

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f70a894855d4f041c45e15dc686f1cbfdb3aeb5e
2+
refs/heads/master: 15d33f7957ff62f8be4e53409c7d131c2c32dfef

trunk/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)