Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
run-pass
/
child-outlives-parent.rs
blob: 80e3c81af5281ac027c9dbb0fa2604bd34d8df80 [
file
] [
log
] [
blame
]
// Reported as issue #126, child leaks the string.
// pretty-expanded FIXME #23616
// ignore-emscripten no threads support
use
std
::
thread
;
fn
child2
(
_s
:
String
)
{
}
pub
fn
main
()
{
let
_x
=
thread
::
spawn
(
move
||
child2
(
"hi"
.
to_string
()));
}