From 96b4eced6c8cc7da459c3fa86c879d2c56916312 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Sun, 16 Oct 2011 18:27:33 -0700 Subject: [PATCH] Fix parse error in constrained-type-missing-check.rs --- src/test/compile-fail/constrained-type-missing-check.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}