diff options
Diffstat (limited to 'src/test/ui/hashmap/hashmap-lifetimes.rs')
-rw-r--r-- | src/test/ui/hashmap/hashmap-lifetimes.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/hashmap/hashmap-lifetimes.rs b/src/test/ui/hashmap/hashmap-lifetimes.rs deleted file mode 100644 index 295bf3b0e..000000000 --- a/src/test/ui/hashmap/hashmap-lifetimes.rs +++ /dev/null @@ -1,8 +0,0 @@ -fn main() { - let mut my_stuff = std::collections::HashMap::new(); - my_stuff.insert(0, 42); - - let mut it = my_stuff.iter(); - my_stuff.insert(1, 43); //~ ERROR cannot borrow - it; -} |