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

Function zeroize_on_tuple_struct_field

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

Source from the content-addressed store, hash-verified

630 #[test]
631 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on struct fields")]
632 fn zeroize_on_tuple_struct_field() {
633 parse_zeroize_test(stringify!(
634 struct Z(#[zeroize(drop)] String);
635 ));
636 }
637
638 #[test]
639 #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on struct fields")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected