diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2011-10-16 18:27:33 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-10-18 16:42:00 -0700 |
| commit | 15d33f7957ff62f8be4e53409c7d131c2c32dfef (patch) | |
| tree | 69dfdbc34ebea0110e2f6a0295cde68fe6d965b2 /src | |
| parent | f70a894855d4f041c45e15dc686f1cbfdb3aeb5e (diff) | |
| download | rust-15d33f7957ff62f8be4e53409c7d131c2c32dfef.tar.gz rust-15d33f7957ff62f8be4e53409c7d131c2c32dfef.zip | |
Fix parse error in constrained-type-missing-check.rs
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/constrained-type-missing-check.rs | 4 |
1 files 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 e09586c295f..cf88ea18008 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 +} |
