]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-10487.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / issue-10487.rs
index 01fb2ea9427370af28d396471b98094259758e4e..c2f40f56948860169400a61cc6d2af3c1a9221b6 100644 (file)
@@ -10,6 +10,6 @@
 
 #[feature(managed_boxes)];
 
-static x: ~[int] = ~[123, 456]; //~ ERROR: static items are not allowed to have owned pointers
+static x: Vec<int> = vec!(123, 456); //~ ERROR: static items are not allowed to have owned pointers
 
 fn main() {}