]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/loop-no-reinit-needed-post-bot.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / loop-no-reinit-needed-post-bot.rs
index 8b77500225022172302169bca8cca70f0f2bb8da..0f4dd881698a4198a1f0e101d593f54ce55dd009 100644 (file)
 impl Drop for S { fn drop(&mut self) { } }
 
 // user-defined function "returning" bottom (i.e. no return at all).
-fn my_fail() -> ! { loop {} }
+fn my_panic() -> ! { loop {} }
 
 pub fn step(f: bool) {
     let mut g = S;
-    let mut i = 0;
+    let mut i = 0i;
     loop
     {
         if i > 10 { break; } else { i += 1; }
@@ -30,7 +30,7 @@ pub fn step(f: bool) {
             continue;
         }
 
-        my_fail();
+        my_panic();
 
         // we never get here, so we do not need to re-initialize g.
     }