about summary refs log tree commit diff
path: root/src/test/parse-fail/removed-syntax-mut-vec-expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/parse-fail/removed-syntax-mut-vec-expr.rs')
-rw-r--r--src/test/parse-fail/removed-syntax-mut-vec-expr.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/parse-fail/removed-syntax-mut-vec-expr.rs b/src/test/parse-fail/removed-syntax-mut-vec-expr.rs
index 301bd0e8b1c..7e5bd27b497 100644
--- a/src/test/parse-fail/removed-syntax-mut-vec-expr.rs
+++ b/src/test/parse-fail/removed-syntax-mut-vec-expr.rs
@@ -11,7 +11,5 @@
 // compile-flags: -Z parse-only
 
 fn f() {
-    let v = [mut 1, 2, 3, 4];
-    //~^  ERROR expected identifier, found keyword `mut`
-    //~^^ ERROR expected one of `!`, `,`, `.`, `::`, `;`, `?`, `]`, `{`, or an operator, found `1`
+    let v = [mut 1, 2, 3, 4]; //~ ERROR expected expression, found keyword `mut`
 }