()
| 736 | expected = "The #[zeroize(skip)] attribute is not allowed on a `struct` or `enum`. Use it on a field or variant instead." |
| 737 | )] |
| 738 | fn zeroize_skip_on_enum() { |
| 739 | parse_zeroize_test(stringify!( |
| 740 | #[zeroize(skip)] |
| 741 | enum Z { |
| 742 | Variant1, |
| 743 | Variant2, |
| 744 | } |
| 745 | )); |
| 746 | } |
| 747 | |
| 748 | #[test] |
| 749 | #[should_panic(expected = "duplicate #[zeroize] skip flags")] |
nothing calls this directly
no test coverage detected