Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
issues
/
issue-21291.rs
blob: 06f50ac6996df4baee3f635c5374e99363bdb0fa [
file
] [
log
] [
blame
]
//@ run-pass
//@ needs-threads
// Regression test for unwrapping the result of `join`, issue #21291
use
std
::
thread
;
fn
main
()
{
thread
::
spawn
(||
{}).
join
().
unwrap
()
}