about summary refs log tree commit diff
path: root/src/test/compile-fail/repeat_count.rs
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/repeat_count.rs
parenteb01b17b06eb35542bb80ff7456043b0ed5572ba (diff)
downloadrust-28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da.tar.gz
rust-28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da.zip
Update tests accordingly
Diffstat (limited to 'src/test/compile-fail/repeat_count.rs')
-rw-r--r--src/test/compile-fail/repeat_count.rs5
1 files changed, 3 insertions, 2 deletions
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