about summary refs log tree commit diff
path: root/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-12-20 15:20:51 +1300
committerNick Cameron <ncameron@mozilla.com>2014-12-20 15:23:29 +1300
commit2e86929a4a5a36f3993e577b4582ba70d84bbb40 (patch)
tree7b3e8049edae74dde7a870a7173afed6f9fc744e /src/test/compile-fail/removed-syntax-mut-vec-ty.rs
parentcbe9fb45bc705a89f23b434c686544d490923596 (diff)
downloadrust-2e86929a4a5a36f3993e577b4582ba70d84bbb40.tar.gz
rust-2e86929a4a5a36f3993e577b4582ba70d84bbb40.zip
Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.
Diffstat (limited to 'src/test/compile-fail/removed-syntax-mut-vec-ty.rs')
-rw-r--r--src/test/compile-fail/removed-syntax-mut-vec-ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/removed-syntax-mut-vec-ty.rs b/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
index af469fadf98..9c6056bd72a 100644
--- a/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
+++ b/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
@@ -10,4 +10,4 @@
 
 type v = [mut int];
     //~^  ERROR expected identifier, found keyword `mut`
-    //~^^ ERROR expected one of `(`, `+`, `,`, `::`, or `]`, found `int`
+    //~^^ ERROR expected one of `(`, `+`, `,`, `::`, `;`, or `]`, found `int`