MCPcopy Create free account
hub / github.com/That3Percent/second-stack / drops

Function drops

src/lib.rs:358–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356
357 #[test]
358 fn drops() {
359 let td = TestDrop::new();
360 let (id, item) = td.new_item();
361 {
362 let some = Some(item);
363 let _ = acquire(some.iter());
364 // Not dropped when moved into the slice
365 td.assert_no_drop(id);
366 }
367
368 // Dropped with the slice
369 td.assert_drop(id);
370 }
371
372 #[test]
373 fn empty_slice_ok() {

Callers

nothing calls this directly

Calls 1

acquireFunction · 0.85

Tested by

no test coverage detected