]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unwind-unique.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / unwind-unique.rs
1 // run-pass
2 // ignore-emscripten no threads support
3
4 #![feature(box_syntax)]
5
6 use std::thread;
7
8 fn f() {
9     let _a: Box<_> = box 0;
10     panic!();
11 }
12
13 pub fn main() {
14     let t = thread::spawn(f);
15     drop(t.join());
16 }