]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / disallowed-deconstructing-destructing-struct-let.rs
index aac6cd118b204884ce23647a8f070c12d8fe89ad..40bb63907c9f16f20a1acbe7bce5a069e45a9389 100644 (file)
@@ -14,7 +14,7 @@ struct X {
 
 impl Drop for X {
     fn drop(&mut self) {
-        error2!("value: {}", self.x);
+        println!("value: {}", self.x);
     }
 }
 
@@ -24,7 +24,7 @@ fn unwrap(x: X) -> ~str {
 }
 
 fn main() {
-    let x = X { x: ~"hello" };
+    let x = X { x: "hello".to_owned() };
     let y = unwrap(x);
-    error2!("contents: {}", y);
+    println!("contents: {}", y);
 }