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

Function zeroize_bound_enum

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

Source from the content-addressed store, hash-verified

825 expected = "The #[zeroize(bound)] attribute is not allowed on enum variants. Use it on the containing enum instead."
826 )]
827 fn zeroize_bound_enum() {
828 parse_zeroize_test(stringify!(
829 enum Z<T> {
830 #[zeroize(bound = "T: MyTrait")]
831 A(T),
832 }
833 ));
834 }
835
836 #[test]
837 #[should_panic(

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected