]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-9259.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / issue-9259.rs
index b8519fdd23dd0ff98edac628e1f9b4caea50c998..b03213272cb16cbc73c826306e0504e761711783 100644 (file)
@@ -14,9 +14,9 @@ struct A<'a> {
 }
 
 pub fn main() {
-    let b = &[~"foo"];
+    let b = &["foo".to_owned()];
     let a = A {
-        a: &[~"test"],
+        a: &["test".to_owned()],
         b: Some(b),
     };
     assert_eq!(a.b.get_ref()[0].as_slice(), "foo");