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

Function zeroize_on_enum

zeroize_derive/src/lib.rs:608–615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

606
607 #[test]
608 fn zeroize_on_enum() {
609 parse_zeroize_test(stringify!(
610 #[zeroize(drop)]
611 enum Z {
612 Variant1 { a: String, b: Vec<u8>, c: [u8; 3] },
613 }
614 ));
615 }
616
617 #[test]
618 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on struct fields")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected