]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/deriving-hash.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / deriving-hash.rs
index 087b7ce56ab47116d73e4fa7f062fd8436e777d3..ce24fa71607043d99c345bba515d42a22a985c47 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-fast
 
 use std::hash;
 use std::hash::Hash;
@@ -21,8 +20,8 @@ struct Person {
 }
 
 fn main() {
-    let person1 = Person { id: 5, name: ~"Janet", phone: 555_666_7777 };
-    let person2 = Person { id: 5, name: ~"Bob", phone: 555_666_7777 };
+    let person1 = Person { id: 5, name: "Janet".to_owned(), phone: 555_666_7777 };
+    let person2 = Person { id: 5, name: "Bob".to_owned(), phone: 555_666_7777 };
     assert!(hash::hash(&person1) == hash::hash(&person1));
     assert!(hash::hash(&person1) != hash::hash(&person2));
 }