]> git.proxmox.com Git - rustc.git/blob - tests/ui/box/unit/unwind-unique.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / box / unit / unwind-unique.rs
1 // run-pass
2 // needs-unwind
3 // ignore-emscripten no threads support
4
5 use std::thread;
6
7 fn f() {
8 let _a: Box<_> = Box::new(0);
9 panic!();
10 }
11
12 pub fn main() {
13 let t = thread::spawn(f);
14 drop(t.join());
15 }