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

Function zeroize_duplicate_bound

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

Source from the content-addressed store, hash-verified

791 #[test]
792 #[should_panic(expected = "duplicate #[zeroize] bound flags")]
793 fn zeroize_duplicate_bound() {
794 parse_zeroize_test(stringify!(
795 #[zeroize(bound = "T: MyTrait")]
796 #[zeroize(bound = "")]
797 struct Z<T>(T);
798 ));
799 }
800
801 #[test]
802 #[should_panic(expected = "duplicate #[zeroize] bound flags")]

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected