about summary refs log tree commit diff
path: root/src/test/run-pass/static-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/static-impl.rs')
-rw-r--r--src/test/run-pass/static-impl.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/run-pass/static-impl.rs b/src/test/run-pass/static-impl.rs
index 10a67b9217c..edceedae71d 100644
--- a/src/test/run-pass/static-impl.rs
+++ b/src/test/run-pass/static-impl.rs
@@ -17,12 +17,12 @@ impl util for uint {
     }
 }
 
-impl util<T> for [T] {
+impl util<T> for [T]/~ {
     fn length_() -> uint { vec::len(self) }
     fn iter_(f: fn(T)) { for self.each {|x| f(x); } }
-    fn map_<U>(f: fn(T) -> U) -> [U] {
-        let mut r = [];
-        for self.each {|elt| r += [f(elt)]; }
+    fn map_<U>(f: fn(T) -> U) -> [U]/~ {
+        let mut r = []/~;
+        for self.each {|elt| r += [f(elt)]/~; }
         r
     }
 }
@@ -33,9 +33,9 @@ fn main() {
     assert 10u.plus() == 30;
     assert "hi".plus() == 200;
 
-    assert [1].length_().str() == "1";
-    assert [3, 4].map_({|a| a + 4})[0] == 7;
-    assert [3, 4].map_::<uint>({|a| a as uint + 4u})[0] == 7u;
+    assert [1]/~.length_().str() == "1";
+    assert [3, 4]/~.map_({|a| a + 4})[0] == 7;
+    assert [3, 4]/~.map_::<uint>({|a| a as uint + 4u})[0] == 7u;
     let mut x = 0u;
     10u.times {|_n| x += 2u;}
     assert x == 20u;