9 lines
215 B
Rust
9 lines
215 B
Rust
//! 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()
|
|
}
|