summary refs log tree commit diff
path: root/src/test/ui/unwind-unique.rs
blob: ea3089e747fb539caddfd9b9d1d8868a91353112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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());
}