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

Function derive_struct_drop

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

Source from the content-addressed store, hash-verified

64/// Test that the custom macro actually derived `Drop` for `Z`
65#[test]
66fn derive_struct_drop() {
67 #[derive(Zeroize, ZeroizeOnDrop)]
68 struct Z([u8; 3]);
69
70 assert!(core::mem::needs_drop::<Z>());
71}
72
73/// Test that the custom macro actually derived `Drop` for `Z`
74#[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected