diff options
| author | Patrick Walton <[email protected]> | 2010-07-12 19:39:29 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-07-15 18:27:09 -0700 |
| commit | c96f0bf7386081d21b00af4fa7fcf73ac8d79575 (patch) | |
| tree | c006fa1a8d9d817b3ccf60a3874034dce5975e3d /src/test | |
| parent | Remove log-type-error; everything is loggable. (diff) | |
| download | rust-c96f0bf7386081d21b00af4fa7fcf73ac8d79575.tar.xz rust-c96f0bf7386081d21b00af4fa7fcf73ac8d79575.zip | |
Implement the "simple typechecker", which avoids HM inference
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/put-in-fn.rs | 4 | ||||
| -rw-r--r-- | src/test/run-pass/acyclic-unwind.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/put-in-fn.rs b/src/test/compile-fail/put-in-fn.rs index bb6363ac..9f704bc3 100644 --- a/src/test/compile-fail/put-in-fn.rs +++ b/src/test/compile-fail/put-in-fn.rs @@ -1,8 +1,8 @@ -// error-pattern: Non-iter function +// error-pattern: iterator function fn f() -> int { put 10; } fn main() { -}
\ No newline at end of file +} diff --git a/src/test/run-pass/acyclic-unwind.rs b/src/test/run-pass/acyclic-unwind.rs index 192a01f3..c9ed2ae3 100644 --- a/src/test/run-pass/acyclic-unwind.rs +++ b/src/test/run-pass/acyclic-unwind.rs @@ -5,7 +5,7 @@ io fn f(chan[int] c) type t = tup(int,int,int); // Allocate a box. - let @t x = tup(1,2,3); + let @t x = @tup(1,2,3); // Signal parent that we've allocated a box. c <| 1; |