]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hashmap-lifetimes.rs
Auto merge of #60065 - QuietMisdreavus:async-move-doctests, r=ollie27
[rust.git] / src / test / ui / hashmap-lifetimes.rs
1 fn main() {
2     let mut my_stuff = std::collections::HashMap::new();
3     my_stuff.insert(0, 42);
4
5     let mut it = my_stuff.iter();
6     my_stuff.insert(1, 43); //~ ERROR cannot borrow
7     it;
8 }