blob: 7ca53b664ac6cb2057071a047f5fc11093814df8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// run-pass
// ignore-emscripten no threads support
use std::thread;
fn f() {
let _a: Box<_> = Box::new(0);
panic!();
}
pub fn main() {
let t = thread::spawn(f);
drop(t.join());
}
|