Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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
}