]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-10412.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / issue-10412.rs
index e0bac1e9e4a604f96a21518d99ac7758266a6839..9f16ba53d827b3d6a76b6a4acf5b93773eb7e1a8 100644 (file)
@@ -25,7 +25,7 @@ fn deserialize(repr: &[u8]) -> &'self str {
 
 fn main() {
     println!("hello");
-    let x = ~"foo";
+    let x = "foo".to_owned();
     let y = x;
     println!("{}", y);
 }