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

Function zeroize_on_enum_variant

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

Source from the content-addressed store, hash-verified

696 #[test]
697 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum variants")]
698 fn zeroize_on_enum_variant() {
699 parse_zeroize_test(stringify!(
700 enum Z {
701 #[zeroize(drop)]
702 Variant,
703 }
704 ));
705 }
706
707 #[test]
708 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum variants")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected