blob: c0e05740542dfaa676956733740fe812f056bf9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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();
}
|