2014-09-24 19:38:15 +01:00
|
|
|
fn main() {
|
|
|
|
|
let mut my_stuff = std::collections::HashMap::new();
|
2015-01-31 17:23:42 +01:00
|
|
|
my_stuff.insert(0, 42);
|
2014-09-24 19:38:15 +01:00
|
|
|
|
|
|
|
|
let mut it = my_stuff.iter();
|
2015-01-01 23:53:35 -08:00
|
|
|
my_stuff.insert(1, 43); //~ ERROR cannot borrow
|
2018-08-15 23:33:14 +02:00
|
|
|
it;
|
2014-09-24 19:38:15 +01:00
|
|
|
}
|