Issue https://github.com/RustCrypto/utils/issues/878
()
| 347 | #[allow(unused_assignments)] |
| 348 | // Issue https://github.com/RustCrypto/utils/issues/878 |
| 349 | fn derive_zeroize_with_marker() { |
| 350 | #[derive(ZeroizeOnDrop, Zeroize)] |
| 351 | struct Test<A: Marker> { |
| 352 | #[zeroize(skip)] |
| 353 | field: Option<A>, |
| 354 | } |
| 355 | |
| 356 | #[allow(dead_code)] |
| 357 | trait Secret: ZeroizeOnDrop + Zeroize {} |
| 358 | |
| 359 | impl<A: Marker> Secret for Test<A> {} |
| 360 | |
| 361 | trait Marker {} |
| 362 | } |
| 363 | |
| 364 | #[test] |
| 365 | #[allow(dead_code)] |
nothing calls this directly
no outgoing calls
no test coverage detected