A small crate to help test drop implementation
Test if the std::rc::Rc
drop implementation works.
```rust extern crate testdrop;
use testdrop::TestDrop; use std::rc::Rc;
let td = TestDrop::new(); let (id, item) = td.newitem(); let item = Rc::new(item); let itemclone = item.clone();
// Decrease the reference counter, but do not drop. drop(itemclone); td.assertno_drop(id);
// Decrease the reference counter and then drop. drop(item); td.assert_drop(id); ```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.