]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/vec-comments.pp
Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus
[rust.git] / src / test / pretty / vec-comments.pp
index a09e341a9402fb1c6265b0a7490a214e8a64fce2..a150cf0b8ea8ae5e8af24666be225c972010a6ab 100644 (file)
@@ -1,39 +1,29 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 // Issue #679
 // Testing that comments are correctly interleaved
 // pp-exact:vec-comments.pp
 fn main() {
     let _v1 =
-        ~[
-          // Comment
-          0,
-          // Comment
-          1,
-          // Comment
-          2];
+        [
+         // Comment
+         0,
+         // Comment
+         1,
+         // Comment
+         2];
     let _v2 =
-        ~[0, // Comment
-          1, // Comment
-          2]; // Comment
+        [0, // Comment
+         1, // Comment
+         2]; // Comment
     let _v3 =
-        ~[
-          /* Comment */
-          0,
-          /* Comment */
-          1,
-          /* Comment */
-          2];
+        [
+         /* Comment */
+         0,
+         /* Comment */
+         1,
+         /* Comment */
+         2];
     let _v4 =
-        ~[0, /* Comment */
-          1, /* Comment */
-          2]; /* Comment */
+        [0, /* Comment */
+         1, /* Comment */
+         2]; /* Comment */
 }