17 lines
218 B
Rust
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());
|
|
}
|