]> 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 af543b8d7823a626e2a792498c61e38079251cca..40bb63907c9f16f20a1acbe7bce5a069e45a9389 100644 (file)
@@ -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);
     println!("contents: {}", y);
 }