]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/static-impl.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / static-impl.rs
index ae547d417f007b03e36015f345b7ab5687a3c495..9eb04d5dac129a3d36d3b2a09194cdce1f0ed73d 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-fast
 
 
 pub trait plus {
@@ -58,9 +57,9 @@ fn map_<U>(&self, f: |&T| -> U) -> Vec<U> {
 
 pub fn main() {
     assert_eq!(10u.plus(), 30);
-    assert_eq!((~"hi").plus(), 200);
+    assert_eq!(("hi".to_owned()).plus(), 200);
 
-    assert_eq!((vec!(1)).length_().str(), ~"1");
+    assert_eq!((vec!(1)).length_().str(), "1".to_owned());
     let vect = vec!(3, 4).map_(|a| *a + 4);
     assert_eq!(*vect.get(0), 7);
     let vect = (vec!(3, 4)).map_::<uint>(|a| *a as uint + 4u);