use try_drop::adapters::DropAdapter; use try_drop::drop_strategies::AbortDropStrategy; use try_drop::test_utils::{ErrorsOnDrop, Fallible}; fn main() { try_drop::install_global_handlers(AbortDropStrategy, AbortDropStrategy); let errors = DropAdapter(ErrorsOnDrop::::not_given()); println!("dropping now"); drop(errors); panic!("the process should've aborted by now") }