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

Function zeroize_duplicate_skip_enum

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

Source from the content-addressed store, hash-verified

775 #[test]
776 #[should_panic(expected = "duplicate #[zeroize] skip flags")]
777 fn zeroize_duplicate_skip_enum() {
778 parse_zeroize_test(stringify!(
779 enum Z {
780 #[zeroize(skip)]
781 Variant {
782 a: String,
783 #[zeroize(skip)]
784 b: Vec<u8>,
785 c: [u8; 3],
786 },
787 }
788 ));
789 }
790
791 #[test]
792 #[should_panic(expected = "duplicate #[zeroize] bound flags")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected