]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-3935.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / issue-3935.rs
index af1538c6e62a011a8e3023b92443291ae5753cc3..36a5396e6cfaa09838b04c69234868e6925908b6 100644 (file)
@@ -14,8 +14,8 @@ struct Bike {
 }
 
 pub fn main() {
-    let town_bike = Bike { name: ~"schwinn" };
-    let my_bike = Bike { name: ~"surly" };
+    let town_bike = Bike { name: "schwinn".to_owned() };
+    let my_bike = Bike { name: "surly".to_owned() };
 
     assert!(town_bike != my_bike);
 }