()
| 707 | #[test] |
| 708 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on enum variants")] |
| 709 | fn zeroize_on_enum_second_variant() { |
| 710 | parse_zeroize_test(stringify!( |
| 711 | enum Z { |
| 712 | Variant1, |
| 713 | #[zeroize(drop)] |
| 714 | Variant2, |
| 715 | } |
| 716 | )); |
| 717 | } |
| 718 | |
| 719 | #[test] |
| 720 | #[should_panic( |
nothing calls this directly
no test coverage detected