]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/match-join.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / match-join.rs
index 47b2ddd5022de7a87574ed2a0334b847b88d8161..a9039885296b0020200ff23ade39b4753ebbd31d 100644 (file)
@@ -10,7 +10,7 @@
 
 fn foo<T>(y: Option<T>) {
     let mut x: int;
-    let mut rs: ~[int] = ~[];
+    let mut rs: Vec<int> = Vec::new();
     /* tests that x doesn't get put in the precondition for the
        entire if expression */