diff --git a/src/test/compile-fail/constrained-type-missing-check.rs b/src/test/compile-fail/constrained-type-missing-check.rs index e09586c295f12..cf88ea18008ed 100644 --- a/src/test/compile-fail/constrained-type-missing-check.rs +++ b/src/test/compile-fail/constrained-type-missing-check.rs @@ -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 @@ -13,4 +13,4 @@ fn main() { let b: int = 2; let c: ordered_range = {low: a, high: b}; log c.low; -} \ No newline at end of file +}