]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/vec-matching.rs
Merge branch 'match' of https://github.com/msullivan/rust into rollup
[rust.git] / src / test / run-pass / vec-matching.rs
index 2651630c3600ef85772d78b6ededf64497ed2107..c09fb8d6bc7ef896ab44ad695bbc52f1dac7182a 100644 (file)
@@ -1,5 +1,5 @@
 fn a() {
-    let x = [1];
+    let x = ~[1];
     match x {
         [_, _, _, _, _, .._] => fail!(),
         [.._, _, _, _, _] => fail!(),
@@ -13,7 +13,7 @@ fn a() {
 }
 
 fn b() {
-    let x = [1, 2, 3];
+    let x = ~[1, 2, 3];
     match x {
         [a, b, ..c] => {
             assert_eq!(a, 1);