()
| 73 | /// Test that the custom macro actually derived `Drop` for `Z` |
| 74 | #[test] |
| 75 | fn derive_enum_drop() { |
| 76 | #[allow(dead_code)] |
| 77 | #[derive(Zeroize, ZeroizeOnDrop)] |
| 78 | enum Z { |
| 79 | Variant1, |
| 80 | Variant2(usize), |
| 81 | } |
| 82 | |
| 83 | assert!(core::mem::needs_drop::<Z>()); |
| 84 | } |
| 85 | |
| 86 | /// Test that the custom macro actually derived `Drop` for `Z` |
| 87 | #[test] |
nothing calls this directly
no outgoing calls
no test coverage detected