Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
moves
/
moves-based-on-type-capture-clause-bad.rs
blob: b2f68352f896c78d1ebd4a8523f73961df690123 [
file
] [
log
] [
blame
]
use
std
::
thread
;
fn
main
()
{
let
x
=
"Hello world!"
.
to_string
();
thread
::
spawn
(
move
||
{
println
!(
"{}"
,
x
);
});
println
!(
"{}"
,
x
);
//~ ERROR borrow of moved value
}