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

Function zeroize_skip_on_struct

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

Source from the content-addressed store, hash-verified

721 expected = "The #[zeroize(skip)] attribute is not allowed on a `struct` or `enum`. Use it on a field or variant instead."
722 )]
723 fn zeroize_skip_on_struct() {
724 parse_zeroize_test(stringify!(
725 #[zeroize(skip)]
726 struct Z {
727 a: String,
728 b: Vec<u8>,
729 c: [u8; 3],
730 }
731 ));
732 }
733
734 #[test]
735 #[should_panic(

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected