Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
threads-sendsync
/
task-life-0.rs
blob: c2440bc44bc3d34f4b01b1ebebef63580628168e [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
unused_must_use
)]
//@ needs-threads
use
std
::
thread
;
pub
fn
main
()
{
thread
::
spawn
(
move
||
child
(
"Hello"
.
to_string
())).
join
();
}
fn
child
(
_s
:
String
)
{}