about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-01-10 13:57:38 -0800
committerNiko Matsakis <niko@alum.mit.edu>2013-01-10 13:58:14 -0800
commit89ed595e306a7f391b561ee8a5a1e7aca24bf534 (patch)
tree4ceb951b690296ea329280a2f9b183783677a7d7
parent8a687dd8e428ac301fabe8110bcd3b630a78ad46 (diff)
downloadrust-89ed595e306a7f391b561ee8a5a1e7aca24bf534.tar.gz
rust-89ed595e306a7f391b561ee8a5a1e7aca24bf534.zip
correct expected error msgs in various tests rs=breakage
-rw-r--r--src/test/compile-fail/access-mode-in-closures.rs4
-rw-r--r--src/test/compile-fail/issue-2548.rs4
-rw-r--r--src/test/compile-fail/kindck-owned-trait-scoped.rs2
-rw-r--r--src/test/compile-fail/kindck-owned-trait.rs2
-rw-r--r--src/test/compile-fail/kindck-owned.rs6
5 files changed, 9 insertions, 9 deletions
diff --git a/src/test/compile-fail/access-mode-in-closures.rs b/src/test/compile-fail/access-mode-in-closures.rs
index 32ac756aaff..6b785fbb5c1 100644
--- a/src/test/compile-fail/access-mode-in-closures.rs
+++ b/src/test/compile-fail/access-mode-in-closures.rs
@@ -1,9 +1,9 @@
 enum sty = ~[int];
 
-fn unpack(unpack: &fn(v: &sty) -> ~[int]) {}
+fn unpack(_unpack: &fn(v: &sty) -> ~[int]) {}
 
 fn main() {
-    let foo = unpack(|s| {
+    let _foo = unpack(|s| {
         // Test that `s` is moved here.
         match *s { sty(v) => v } //~ ERROR moving out of dereference of immutable & pointer
     });
diff --git a/src/test/compile-fail/issue-2548.rs b/src/test/compile-fail/issue-2548.rs
index 16b6360b559..2684289d70f 100644
--- a/src/test/compile-fail/issue-2548.rs
+++ b/src/test/compile-fail/issue-2548.rs
@@ -32,9 +32,9 @@ fn main() {
 
     {
         let mut res = foo(x);
-        
+
         let mut v = ~[mut];
-        v = move ~[mut (move res)] + v; //~ ERROR instantiating a type parameter with an incompatible type (needs `copy`, got `durable`, missing `copy`)
+        v = move ~[mut (move res)] + v; //~ ERROR instantiating a type parameter with an incompatible type (needs `copy`, got `&static`, missing `copy`)
         assert (v.len() == 2);
     }
 
diff --git a/src/test/compile-fail/kindck-owned-trait-scoped.rs b/src/test/compile-fail/kindck-owned-trait-scoped.rs
index b160ffe2ecd..6c6cdbbb2c7 100644
--- a/src/test/compile-fail/kindck-owned-trait-scoped.rs
+++ b/src/test/compile-fail/kindck-owned-trait-scoped.rs
@@ -32,7 +32,7 @@ fn to_foo<T:Copy>(t: T) {
 fn to_foo_2<T:Copy>(t: T) -> foo {
     // Not OK---T may contain borrowed ptrs and it is going to escape
     // as part of the returned foo value
-    {f:t} as foo //~ ERROR value may contain borrowed pointers; use `durable` bound
+    {f:t} as foo //~ ERROR value may contain borrowed pointers; use `&static` bound
 }
 
 fn to_foo_3<T:Copy &static>(t: T) -> foo {
diff --git a/src/test/compile-fail/kindck-owned-trait.rs b/src/test/compile-fail/kindck-owned-trait.rs
index 63d8212f41d..683d66d0d72 100644
--- a/src/test/compile-fail/kindck-owned-trait.rs
+++ b/src/test/compile-fail/kindck-owned-trait.rs
@@ -11,7 +11,7 @@
 trait foo { fn foo(); }
 
 fn to_foo<T: Copy foo>(t: T) -> foo {
-    t as foo //~ ERROR value may contain borrowed pointers; use `durable` bound
+    t as foo //~ ERROR value may contain borrowed pointers; use `&static` bound
 }
 
 fn to_foo2<T: Copy foo &static>(t: T) -> foo {
diff --git a/src/test/compile-fail/kindck-owned.rs b/src/test/compile-fail/kindck-owned.rs
index 9cd7b36095f..52031c900a2 100644
--- a/src/test/compile-fail/kindck-owned.rs
+++ b/src/test/compile-fail/kindck-owned.rs
@@ -18,12 +18,12 @@ fn copy2<T: Copy &static>(t: T) -> fn@() -> T {
 
 fn main() {
     let x = &3;
-    copy2(&x); //~ ERROR missing `durable`
+    copy2(&x); //~ ERROR missing `&static`
 
     copy2(@3);
-    copy2(@&x); //~ ERROR missing `durable`
+    copy2(@&x); //~ ERROR missing `&static`
 
     copy2(fn@() {});
     copy2(fn~() {}); //~ WARNING instantiating copy type parameter with a not implicitly copyable type
-    copy2(fn&() {}); //~ ERROR missing `copy durable`
+    copy2(fn&() {}); //~ ERROR missing `copy &static`
 }