Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
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
();
}