()
| 696 | #[test] |
| 697 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum variants")] |
| 698 | fn zeroize_on_enum_variant() { |
| 699 | parse_zeroize_test(stringify!( |
| 700 | enum Z { |
| 701 | #[zeroize(drop)] |
| 702 | Variant, |
| 703 | } |
| 704 | )); |
| 705 | } |
| 706 | |
| 707 | #[test] |
| 708 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum variants")] |
nothing calls this directly
no test coverage detected