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

Function zeroize_on_enum_variant_field

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

Source from the content-addressed store, hash-verified

661 #[test]
662 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum fields")]
663 fn zeroize_on_enum_variant_field() {
664 parse_zeroize_test(stringify!(
665 enum Z {
666 Variant {
667 #[zeroize(drop)]
668 a: String,
669 b: Vec<u8>,
670 c: [u8; 3],
671 },
672 }
673 ));
674 }
675
676 #[test]
677 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum fields")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected