about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/compile-fail/class-cast-to-trait.rs3
-rw-r--r--src/test/compile-fail/issue-1871.rs2
-rw-r--r--src/test/compile-fail/issue-1896-1.rs2
-rw-r--r--src/test/compile-fail/issue-2149.rs2
-rw-r--r--src/test/compile-fail/pure-loop-body.rs2
-rw-r--r--src/test/compile-fail/regions-steal-closure.rs2
6 files changed, 6 insertions, 7 deletions
diff --git a/src/test/compile-fail/class-cast-to-trait.rs b/src/test/compile-fail/class-cast-to-trait.rs
index 70b1c4c9fbb..d710a91a374 100644
--- a/src/test/compile-fail/class-cast-to-trait.rs
+++ b/src/test/compile-fail/class-cast-to-trait.rs
@@ -1,4 +1,3 @@
-// error-pattern: attempted access of field `eat` on type `@noisy`
 trait noisy {
   fn speak();
 }
@@ -50,5 +49,5 @@ fn cat(in_x : uint, in_y : int, in_name: ~str) -> cat {
 
 fn main() {
   let nyan : noisy  = cat(0, 2, ~"nyan") as noisy;
-  nyan.eat();
+  nyan.eat(); //~ ERROR type `@noisy` does not implement any method in scope named `eat`
 }
diff --git a/src/test/compile-fail/issue-1871.rs b/src/test/compile-fail/issue-1871.rs
index 99458b835f0..a68594e3b86 100644
--- a/src/test/compile-fail/issue-1871.rs
+++ b/src/test/compile-fail/issue-1871.rs
@@ -4,7 +4,7 @@ fn main() {
   let f = 42;
 
   let _g = if f < 5 {
-      f.honk() //~ ERROR attempted access of field `honk`
+      f.honk() //~ ERROR does not implement any method in scope named `honk`
   }
   else {
       ()
diff --git a/src/test/compile-fail/issue-1896-1.rs b/src/test/compile-fail/issue-1896-1.rs
index d95611cbeb7..92f623e35f8 100644
--- a/src/test/compile-fail/issue-1896-1.rs
+++ b/src/test/compile-fail/issue-1896-1.rs
@@ -7,7 +7,7 @@ fn createClosure (closedUint: uint) -> boxedFn {
 fn main () {
     let aFn: boxedFn = createClosure(10);
 
-    let myInt: uint = aFn.theFn();
+    let myInt: uint = (aFn.theFn)();
 
     assert myInt == 10;
 }
\ No newline at end of file
diff --git a/src/test/compile-fail/issue-2149.rs b/src/test/compile-fail/issue-2149.rs
index b9ccfc66703..adb1e899f1c 100644
--- a/src/test/compile-fail/issue-2149.rs
+++ b/src/test/compile-fail/issue-2149.rs
@@ -11,5 +11,5 @@ impl<A> ~[A]: vec_monad<A> {
    }
 }
 fn main() {
-    ["hi"].bind({|x| [x] }); //~ ERROR attempted access of field `bind`
+    ["hi"].bind({|x| [x] }); //~ ERROR type `[&static/str]/1` does not implement any method in scope named `bind`
 }
diff --git a/src/test/compile-fail/pure-loop-body.rs b/src/test/compile-fail/pure-loop-body.rs
index bcc23d3c0d9..676a992f9c4 100644
--- a/src/test/compile-fail/pure-loop-body.rs
+++ b/src/test/compile-fail/pure-loop-body.rs
@@ -14,7 +14,7 @@ pure fn range2(from: uint, to: uint, f: fn(uint)) {
 
 pure fn range3(from: uint, to: uint, f: {x: fn(uint)}) {
     for range(from, to) |i| {
-        f.x(i*2u); //~ ERROR access to impure function prohibited
+        (f.x)(i*2u); //~ ERROR access to impure function prohibited
     }
 }
 
diff --git a/src/test/compile-fail/regions-steal-closure.rs b/src/test/compile-fail/regions-steal-closure.rs
index 668d11f03b1..554858ea88e 100644
--- a/src/test/compile-fail/regions-steal-closure.rs
+++ b/src/test/compile-fail/regions-steal-closure.rs
@@ -11,5 +11,5 @@ fn main() {
         let mut i = 3;
         box_it(|| i += 1) //~ ERROR cannot infer an appropriate lifetime
     };
-    cl_box.cl();
+    (cl_box.cl)();
 }