Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
hashmap
/
hashmap-lifetimes.rs
blob: 295bf3b0e663156cdb0d83ed5456e9015def9fd5 [
file
] [
log
] [
blame
]
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
;
}