Sign in
◑
Theme
rust
/
rust
/
c1d608bb7e862c8d8b74ce7cfc042fa98e9d4792
/
.
/
tests
/
ui
/
dropck
/
drop-with-active-borrows-1.rs
blob: 1e924af296a5dd7c91333465a4da2e7254bff830 [
file
]
fn
main
()
{
let
a
=
""
.
to_string
();
let
b
:
Vec
<&
str
>
=
a
.
lines
().
collect
();
drop
(
a
);
//~ ERROR cannot move out of `a` because it is borrowed
for
s in
&
b
{
println
!(
"{}"
,
*
s
);
}
}