]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/const-enum-vec-repeat.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / const-enum-vec-repeat.rs
index 44b91fcee3c71ea03fb2c15b4795d6de0f46ce9c..5470b1d6615009b88d8799a51bd892525054e601 100644 (file)
@@ -11,5 +11,5 @@
 enum State { ST_NULL, ST_WHITESPACE = 1 }
 
 pub fn main() {
-    ~[ST_NULL, ..(ST_WHITESPACE as uint)];
+    vec!(ST_NULL, ..(ST_WHITESPACE as uint));
 }