2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2024-03-06 12:19:20 -08:00
|
|
|
//@ needs-threads
|
2016-02-11 12:34:41 +01:00
|
|
|
|
2015-04-09 17:23:49 -07:00
|
|
|
// Regression test for unwrapping the result of `join`, issue #21291
|
|
|
|
|
|
|
|
|
|
use std::thread;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
thread::spawn(|| {}).join().unwrap()
|
|
|
|
|
}
|