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

Function zeroize_bound_struct

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

Source from the content-addressed store, hash-verified

812 expected = "The #[zeroize(bound)] attribute is not allowed on struct fields. Use it on the containing struct instead."
813 )]
814 fn zeroize_bound_struct() {
815 parse_zeroize_test(stringify!(
816 struct Z<T> {
817 #[zeroize(bound = "T: MyTrait")]
818 a: T,
819 }
820 ));
821 }
822
823 #[test]
824 #[should_panic(

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected