Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
panic-runtime
/
auxiliary
/
exit-success-if-unwind.rs
blob: 1648d10e5aa2c92f43879cca1c9ce264a2352914 [
file
] [
log
] [
blame
] [
edit
]
//@ no-prefer-dynamic
#![
crate_type
=
"rlib"
]
struct
Bomb
;
impl
Drop
for
Bomb
{
fn
drop
(&
mut
self
)
{
std
::
process
::
exit
(
0
);
}
}
pub
fn
bar
(
f
:
fn
())
{
let
_bomb
=
Bomb
;
f
();
}