()
| 606 | |
| 607 | #[test] |
| 608 | fn zeroize_on_enum() { |
| 609 | parse_zeroize_test(stringify!( |
| 610 | #[zeroize(drop)] |
| 611 | enum Z { |
| 612 | Variant1 { a: String, b: Vec<u8>, c: [u8; 3] }, |
| 613 | } |
| 614 | )); |
| 615 | } |
| 616 | |
| 617 | #[test] |
| 618 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on struct fields")] |
nothing calls this directly
no test coverage detected