Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Test;
- impl Drop for Test {
- fn drop(&mut self) {
- println!("Drop called");
- }
- }
- fn main() {
- let _test = Test;
- panic!("Panic")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement