rust/src/test/ui/unwind-unique.rs
2019-07-27 18:56:16 +03:00

17 lines
218 B
Rust

// run-pass
// 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());
}