]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/drop-on-ret.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / drop-on-ret.rs
index 7a372315b6c0ca87c269673cd0c5ef6f18172629..0786974e112071b9dbde077a3fe536a2ca15fd35 100644 (file)
@@ -13,7 +13,7 @@
 
 fn f() -> int {
     if true {
-        let _s: String = "should not leak".to_strbuf();
+        let _s: String = "should not leak".to_string();
         return 1;
     }
     return 0;