]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/circular_modules_main.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / circular_modules_main.rs
index 06b5854f42c824f18c439cb6147188a13a72aa5a..a1739849807ccad5eb44c0639d1c6c3af8af6dfd 100644 (file)
@@ -12,7 +12,7 @@
 mod circular_modules_hello; //~ERROR: circular modules
 
 pub fn hi_str() -> ~str {
-  ~"Hi!"
+  "Hi!".to_owned()
 }
 
 fn main() {