]> git.proxmox.com Git - rustc.git/blobdiff - src/test/parse-fail/removed-syntax-mut-vec-expr.rs
Imported Upstream version 1.1.0+dfsg1
[rustc.git] / src / test / parse-fail / removed-syntax-mut-vec-expr.rs
index 30302bbd16ef8e0387083285bba38b5c39f43647..ab9ff7ac19e5e42fa9d9ca72ecef2ff07a1b9071 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// compile-flags: -Z parse-only
+
 fn f() {
     let v = [mut 1, 2, 3, 4];
     //~^  ERROR expected identifier, found keyword `mut`