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

Class Test

zeroize/tests/zeroize_derive.rs:351–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349fn derive_zeroize_with_marker() {
350 #[derive(ZeroizeOnDrop, Zeroize)]
351 struct Test<A: Marker> {
352 #[zeroize(skip)]
353 field: Option<A>,
354 }
355
356 #[allow(dead_code)]
357 trait Secret: ZeroizeOnDrop + Zeroize {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected