about summary refs log tree commit diff
path: root/src/test/compile-fail/repeat_count.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/repeat_count.rs')
-rw-r--r--src/test/compile-fail/repeat_count.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/test/compile-fail/repeat_count.rs b/src/test/compile-fail/repeat_count.rs
index e19c1921a90..8a28819a736 100644
--- a/src/test/compile-fail/repeat_count.rs
+++ b/src/test/compile-fail/repeat_count.rs
@@ -12,17 +12,17 @@
 
 fn main() {
     let n = 1;
-    let a = [0, ..n]; //~ ERROR expected constant integer for repeat count but found variable
-    let b = [0, ..()]; //~ ERROR expected positive integer for repeat count but found ()
-    //~^ ERROR: expected `uint` but found `()`
-    let c = [0, ..true]; //~ ERROR expected positive integer for repeat count but found boolean
-    //~^ ERROR: expected `uint` but found `bool`
-    let d = [0, ..0.5]; //~ ERROR expected positive integer for repeat count but found float
-    //~^ ERROR: expected `uint` but found `<generic float #0>`
-    let e = [0, .."foo"]; //~ ERROR expected positive integer for repeat count but found string
-    //~^ ERROR: expected `uint` but found `&'static str`
+    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 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
+    //~^ ERROR: expected `uint`, found `<generic float #0>`
+    let e = [0, .."foo"]; //~ ERROR expected positive integer for repeat count, found string
+    //~^ ERROR: expected `uint`, found `&'static str`
     let f = [0, ..-4];
-    //~^ ERROR expected positive integer for repeat count but found negative integer
+    //~^ ERROR expected positive integer for repeat count, found negative integer
     let f = [0u, ..-1];
-    //~^ ERROR expected positive integer for repeat count but found negative integer
+    //~^ ERROR expected positive integer for repeat count, found negative integer
 }