rust/src/test/run-pass/unwind-unique.rs
2018-12-25 21:08:33 -07:00

16 lines
206 B
Rust

// ignore-emscripten no threads support
#![feature(box_syntax)]
use std::thread;
fn f() {
let _a: Box<_> = box 0;
panic!();
}
pub fn main() {
let t = thread::spawn(f);
drop(t.join());
}