]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/overload-index-operator.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / overload-index-operator.rs
index 865e1cc601b3960805db16e921f3ecdaba79e882..b72c4f92ea3e796cf73641c725b712759a800f77 100644 (file)
@@ -40,8 +40,8 @@ fn index(&self, index: &K) -> V {
 }
 
 pub fn main() {
-    let foo = ~"foo";
-    let bar = ~"bar";
+    let foo = "foo".to_owned();
+    let bar = "bar".to_owned();
 
     let mut list = AssociationList {pairs: Vec::new()};
     list.push(foo.clone(), 22);