]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/foreach-external-iterators-hashmap-break-restart.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / foreach-external-iterators-hashmap-break-restart.rs
index e2a06162bed4e197322c0824834d5cae2f626e9c..4305ae956989e3e99e44cb70f3db18ee82c89f45 100644 (file)
@@ -10,7 +10,7 @@
 
 extern crate collections;
 
-use collections::HashMap;
+use std::collections::HashMap;
 
 // This is a fancy one: it uses an external iterator established
 // outside the loop, breaks, then _picks back up_ and continues
@@ -18,7 +18,7 @@
 
 pub fn main() {
     let mut h = HashMap::new();
-    let kvs = [(1, 10), (2, 20), (3, 30)];
+    let kvs = [(1i, 10i), (2i, 20i), (3i, 30i)];
     for &(k,v) in kvs.iter() {
         h.insert(k,v);
     }