Minimal test case:
use std::thread;
fn main() {
let h = thread::spawn(|| {
thread::yield_now();
});
h.join().unwrap();
}
This piece of code will panic with output:
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:367
playpen: application terminated with error code 101
Tested on playpen with stable Rust.