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

Function zeroize_bound_no_value

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

Source from the content-addressed store, hash-verified

853 expected = "The #[zeroize(bound)] attribute expects a name-value syntax with a string literal value.E.g. #[zeroize(bound = \"T: MyTrait\")]."
854 )]
855 fn zeroize_bound_no_value() {
856 parse_zeroize_test(stringify!(
857 #[zeroize(bound)]
858 struct Z<T>(T);
859 ));
860 }
861
862 #[test]
863 #[should_panic(expected = "error parsing bounds: LitStr { token: \"T\" } (expected `:`)")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected