Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct S;
- impl Drop for S {
- fn drop(&mut self) {
- eprintln!("spooky");
- }
- }
- extern "C" fn scary() {
- let s = S;
- panic!();
- drop(s);
- }
- fn main() {
- scary();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement