]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/vec-comments.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / pretty / vec-comments.rs
index a09e341a9402fb1c6265b0a7490a214e8a64fce2..d685ad49a27defc73173d531ea6e6b3496ed55aa 100644 (file)
 // pp-exact:vec-comments.pp
 fn main() {
     let _v1 =
-        ~[
+        vec!(
           // Comment
           0,
           // Comment
           1,
           // Comment
-          2];
+          2);
     let _v2 =
-        ~[0, // Comment
+        vec!(0, // Comment
           1, // Comment
-          2]; // Comment
+          2); // Comment
     let _v3 =
-        ~[
+        vec!(
           /* Comment */
           0,
           /* Comment */
           1,
           /* Comment */
-          2];
+          2);
     let _v4 =
-        ~[0, /* Comment */
+        vec!(0, /* Comment */
           1, /* Comment */
-          2]; /* Comment */
+          2); /* Comment */
 }