()
| 661 | #[test] |
| 662 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum fields")] |
| 663 | fn zeroize_on_enum_variant_field() { |
| 664 | parse_zeroize_test(stringify!( |
| 665 | enum Z { |
| 666 | Variant { |
| 667 | #[zeroize(drop)] |
| 668 | a: String, |
| 669 | b: Vec<u8>, |
| 670 | c: [u8; 3], |
| 671 | }, |
| 672 | } |
| 673 | )); |
| 674 | } |
| 675 | |
| 676 | #[test] |
| 677 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum fields")] |
nothing calls this directly
no test coverage detected