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

Function zeroize_skip_on_enum

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

Source from the content-addressed store, hash-verified

736 expected = "The #[zeroize(skip)] attribute is not allowed on a `struct` or `enum`. Use it on a field or variant instead."
737 )]
738 fn zeroize_skip_on_enum() {
739 parse_zeroize_test(stringify!(
740 #[zeroize(skip)]
741 enum Z {
742 Variant1,
743 Variant2,
744 }
745 ));
746 }
747
748 #[test]
749 #[should_panic(expected = "duplicate #[zeroize] skip flags")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected