]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/lint-heap-memory.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / lint-heap-memory.rs
index abe4d08903dc32d81fe50832d7edb3db44428e14..5f2987c6cfbd4e41489a2d5369edd2be2843ae0d 100644 (file)
@@ -26,7 +26,6 @@ fn main() {
 
     ~2; //~ ERROR type uses owned
     fn g(_: ~Clone) {} //~ ERROR type uses owned
-    ~""; //~ ERROR type uses owned
-    //~^ ERROR type uses owned
+    "".to_owned(); //~ ERROR type uses owned
     proc() {}; //~ ERROR type uses owned
 }