about summary refs log tree commit diff
path: root/src/test/run-pass/loop-scope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/loop-scope.rs')
-rw-r--r--src/test/run-pass/loop-scope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/loop-scope.rs b/src/test/run-pass/loop-scope.rs
index 07be3bd6c81..aec16e2d47b 100644
--- a/src/test/run-pass/loop-scope.rs
+++ b/src/test/run-pass/loop-scope.rs
@@ -11,6 +11,6 @@
 pub fn main() {
     let x = ~[10, 20, 30];
     let mut sum = 0;
-    for x.each |x| { sum += *x; }
+    for x.iter().advance |x| { sum += *x; }
     assert_eq!(sum, 60);
 }