1 2 3 4 5 6 7 8 9 10
//@ run-pass //@ needs-threads // Regression test for unwrapping the result of `join`, issue #21291 use std::thread; fn main() { thread::spawn(|| {}).join().unwrap() }