]> 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 afc9e532ad8548e02d3837319a5b07e56b7f704e..0786974e112071b9dbde077a3fe536a2ca15fd35 100644 (file)
 
 
 
-// -*- rust -*-
 fn f() -> int {
     if true {
-        let _s: ~str = ~"should not leak";
+        let _s: String = "should not leak".to_string();
         return 1;
     }
     return 0;