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

Function zeroize_on_tuple_enum_variant_field

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

Source from the content-addressed store, hash-verified

651 #[test]
652 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum fields")]
653 fn zeroize_on_tuple_enum_variant_field() {
654 parse_zeroize_test(stringify!(
655 enum Z {
656 Variant(#[zeroize(drop)] String),
657 }
658 ));
659 }
660
661 #[test]
662 #[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