about summary refs log tree commit diff
path: root/src/test/compile-fail/array-not-vector.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/array-not-vector.rs')
-rw-r--r--src/test/compile-fail/array-not-vector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/array-not-vector.rs b/src/test/compile-fail/array-not-vector.rs
index 79d4ada41e8..7edb4b8754a 100644
--- a/src/test/compile-fail/array-not-vector.rs
+++ b/src/test/compile-fail/array-not-vector.rs
@@ -9,8 +9,8 @@
 // except according to those terms.
 
 fn main() {
-    let _x: int = [1i, 2, 3]; //~ ERROR expected int, found array
+    let _x: int = [1i, 2, 3]; //~ ERROR expected int, found array of 3 elements
 
     let x: &[int] = &[1, 2, 3];
-    let _y: &int = x; //~ ERROR expected int, found unsized array
+    let _y: &int = x; //~ ERROR expected int, found slice
 }