Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
threads-sendsync
/
thread-join-unwrap.rs
blob: 6288e15b1874108d364f906f83c350f52ecaf6e6 [
file
] [
log
] [
blame
] [
edit
]
//! Regression test for unwrapping the result of `join`, issue https://github.com/rust-lang/rust/issues/21291
//@ run-pass
//@ needs-threads
use
std
::
thread
;
fn
main
()
{
thread
::
spawn
(||
{}).
join
().
unwrap
()
}