about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorJakub Bukaj <jakub@jakub.cc>2014-11-09 16:14:48 +0100
committerJakub Bukaj <jakub@jakub.cc>2014-11-16 14:23:15 +0100
commit28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da (patch)
tree0742c3e6790c582c02ff169532235c3ad9f8a640 /src/test/compile-fail
parenteb01b17b06eb35542bb80ff7456043b0ed5572ba (diff)
downloadrust-28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da.tar.gz
rust-28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da.zip
Update tests accordingly
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/issue-16939.rs2
-rw-r--r--src/test/compile-fail/non-constant-enum-for-vec-repeat.rs2
-rw-r--r--src/test/compile-fail/repeat_count.rs5
3 files changed, 5 insertions, 4 deletions
diff --git a/src/test/compile-fail/issue-16939.rs b/src/test/compile-fail/issue-16939.rs
index 8e7a2a9db3d..e7d3d15e5a9 100644
--- a/src/test/compile-fail/issue-16939.rs
+++ b/src/test/compile-fail/issue-16939.rs
@@ -14,7 +14,7 @@
 // wrong arity.
 
 fn _foo<F: Fn()> (f: F) {
-    |t| f(t); //~ ERROR E0058
+    |t| f(t); //~ ERROR E0057
 }
 
 fn main() {}
diff --git a/src/test/compile-fail/non-constant-enum-for-vec-repeat.rs b/src/test/compile-fail/non-constant-enum-for-vec-repeat.rs
index c4d5d734a71..87fe50c8666 100644
--- a/src/test/compile-fail/non-constant-enum-for-vec-repeat.rs
+++ b/src/test/compile-fail/non-constant-enum-for-vec-repeat.rs
@@ -12,5 +12,5 @@ enum State { ST_NULL, ST_WHITESPACE }
 
 fn main() {
     [ST_NULL, ..(ST_WHITESPACE as uint)];
-    //~^ ERROR expected constant integer for repeat count, found variable
+    //~^ ERROR expected constant integer for repeat count, found non-constant expression
 }
diff --git a/src/test/compile-fail/repeat_count.rs b/src/test/compile-fail/repeat_count.rs
index be79a7a915b..38fbb426fb1 100644
--- a/src/test/compile-fail/repeat_count.rs
+++ b/src/test/compile-fail/repeat_count.rs
@@ -13,8 +13,9 @@
 fn main() {
     let n = 1;
     let a = [0, ..n]; //~ ERROR expected constant integer for repeat count, found variable
-    let b = [0, ..()]; //~ ERROR expected positive integer for repeat count, found ()
-    //~^ ERROR: expected `uint`, found `()`
+    let b = [0, ..()];
+//~^ ERROR expected constant integer for repeat count, found non-constant expression
+//~^^ ERROR: expected `uint`, found `()`
     let c = [0, ..true]; //~ ERROR expected positive integer for repeat count, found boolean
     //~^ ERROR: expected `uint`, found `bool`
     let d = [0, ..0.5]; //~ ERROR expected positive integer for repeat count, found float