Sign in
◑
Theme
rust
/
rust
/
d7e8f9fc7af4aa4cd65140afaebe48dd1e90e708
/
.
/
tests
/
ui
/
moves
/
moves-based-on-type-capture-clause-bad.fixed
blob: 04a183ca96be4258afb0bca16fd619764194b07b [
file
]
//@ run-rustfix
use
std
::
thread
;
fn main
()
{
let
x
=
"Hello world!"
.
to_string
();
let
value
=
x
.
clone
();
thread
::
spawn
(
move
||
{
println
!(
"{}"
,
value
);
});
println
!(
"{}"
,
x
);
//~ ERROR borrow of moved value
}