MCPcopy Create free account
hub / github.com/RustCrypto/utils / derive_zeroize_on_drop_generic

Function derive_zeroize_on_drop_generic

zeroize/tests/zeroize_derive.rs:325–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323#[cfg(feature = "alloc")]
324#[allow(dead_code)]
325fn derive_zeroize_on_drop_generic() {
326 #[derive(ZeroizeOnDrop)]
327 struct Y<T: Zeroize>(Box<T>);
328
329 #[derive(ZeroizeOnDrop)]
330 struct Z<T: Zeroize>(Vec<T>);
331}
332
333#[test]
334#[allow(dead_code)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected