about summary refs log tree commit diff
path: root/src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs')
-rw-r--r--src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs b/src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs
index 891cbf6696b..a4988bf016c 100644
--- a/src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs
+++ b/src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs
@@ -19,7 +19,7 @@ use std::collections::HashMap;
 pub fn main() {
     let mut h = HashMap::new();
     let kvs = [(1, 10), (2, 20), (3, 30)];
-    for &(k,v) in kvs.iter() {
+    for &(k,v) in &kvs {
         h.insert(k,v);
     }
     let mut x = 0;