aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-07-12 19:39:29 -0700
committerPatrick Walton <[email protected]>2010-07-15 18:27:09 -0700
commitc96f0bf7386081d21b00af4fa7fcf73ac8d79575 (patch)
treec006fa1a8d9d817b3ccf60a3874034dce5975e3d /src/test
parentRemove log-type-error; everything is loggable. (diff)
downloadrust-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.rs4
-rw-r--r--src/test/run-pass/acyclic-unwind.rs2
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;