Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
box
/
unit
/
unwind-unique.rs
blob: 512327c9af4560850a9f22c2a09d87595c2012cc [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
//@ needs-unwind
//@ ignore-emscripten no threads support
use
std
::
thread
;
fn
f
()
{
let
_a
:
Box
<
_
>
=
Box
::
new
(
0
);
panic
!();
}
pub
fn
main
()
{
let
t
=
thread
::
spawn
(
f
);
drop
(
t
.
join
());
}