]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/new-style-fixed-length-vec.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / new-style-fixed-length-vec.rs
index 488bd65f5484a19d40d1316867dc365a1cf01983..e06461daed0c93c9afea708e96e195bf276283cc 100644 (file)
@@ -8,10 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::io::println;
-
-static FOO: [int, ..3] = [1, 2, 3];
+static FOO: [int; 3] = [1, 2, 3];
 
 pub fn main() {
-    printfln!("%d %d %d", FOO[0], FOO[1], FOO[2]);
+    println!("{} {} {}", FOO[0], FOO[1], FOO[2]);
 }