about summary refs log tree commit diff
path: root/src/test/run-pass/alt-join.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/alt-join.rs')
-rw-r--r--src/test/run-pass/alt-join.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/alt-join.rs b/src/test/run-pass/alt-join.rs
index 3aeb70eecb1..7b90287d9d4 100644
--- a/src/test/run-pass/alt-join.rs
+++ b/src/test/run-pass/alt-join.rs
@@ -7,12 +7,12 @@ import std::option::some;
 
 fn foo[T](y: &option::t[T]) {
     let x: int;
-    let rs: vec[int] = [];
+    let rs: [int] = ~[];
     /* tests that x doesn't get put in the precondition for the
        entire if expression */
 
     if true {
-    } else { alt y { none[T]. { x = 17; } _ { x = 42; } } rs += [x]; }
+    } else { alt y { none[T]. { x = 17; } _ { x = 42; } } rs += ~[x]; }
     ret;
 }