2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2016-02-11 05:34:41 -06:00
|
|
|
// ignore-emscripten no threads support
|
|
|
|
|
2015-04-09 19:23:49 -05:00
|
|
|
// Regression test for unwrapping the result of `join`, issue #21291
|
|
|
|
|
|
|
|
use std::thread;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
thread::spawn(|| {}).join().unwrap()
|
|
|
|
}
|