]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/non-constant-enum-for-vec-repeat.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / compile-fail / non-constant-enum-for-vec-repeat.rs
index 162b84d6cece11b459ab353109c76071d1217e77..fd857129c35690e0371ee8e21109fb4ed44d3024 100644 (file)
@@ -11,6 +11,6 @@
 enum State { ST_NULL, ST_WHITESPACE }
 
 fn main() {
-    vec!(ST_NULL, ..(ST_WHITESPACE as uint));
+    [ST_NULL, ..(ST_WHITESPACE as uint)];
     //~^ ERROR expected constant integer for repeat count but found variable
 }