]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/private-method.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / private-method.rs
index c218b6ba0136aea29d1de95f644cc0f40c217822..b64ca955cde6d3d60b2052d6ff28b7cd31851739 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 struct cat {
-    priv meows : uint,
+    meows : uint,
 
     how_hungry : int,
 }
@@ -22,7 +22,7 @@ pub fn play(&mut self) {
 }
 
 impl cat {
-    fn nap(&mut self) { foreach _ in range(1u, 10u) { } }
+    fn nap(&mut self) { for _ in range(1u, 10u) { } }
 }
 
 fn cat(in_x : uint, in_y : int) -> cat {