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

Function zeroize_on_enum_second_variant

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

Source from the content-addressed store, hash-verified

707 #[test]
708 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum variants")]
709 fn zeroize_on_enum_second_variant() {
710 parse_zeroize_test(stringify!(
711 enum Z {
712 Variant1,
713 #[zeroize(drop)]
714 Variant2,
715 }
716 ));
717 }
718
719 #[test]
720 #[should_panic(

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected