Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
moves
/
moves-based-on-type-capture-clause.rs
blob: 4a6a4ed281d4206ebbf23df1421582ee73a1464d [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
unused_must_use
)]
// ignore-emscripten no threads support
use
std
::
thread
;
pub
fn
main
()
{
let
x
=
"Hello world!"
.
to_string
();
thread
::
spawn
(
move
||
{
println
!(
"{}"
,
x
);
}).
join
();
}