]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/struct-literal-dtor.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / struct-literal-dtor.rs
index 0657f1a8faec919de5d3a2834f3af8bfc18de849..d4c7f951b4e85208944ca3558448070f3bfb5ef7 100644 (file)
@@ -19,5 +19,5 @@ fn drop(&mut self) {
 }
 
 pub fn main() {
-    let _z = foo { x: ~"Hello" };
+    let _z = foo { x: "Hello".to_owned() };
 }