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

Function zeroize_bound_enum_variant_field

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

Source from the content-addressed store, hash-verified

838 expected = "The #[zeroize(bound)] attribute is not allowed on enum fields. Use it on the containing enum instead."
839 )]
840 fn zeroize_bound_enum_variant_field() {
841 parse_zeroize_test(stringify!(
842 enum Z<T> {
843 A {
844 #[zeroize(bound = "T: MyTrait")]
845 a: T,
846 },
847 }
848 ));
849 }
850
851 #[test]
852 #[should_panic(

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected