()
| 825 | expected = "The #[zeroize(bound)] attribute is not allowed on enum variants. Use it on the containing enum instead." |
| 826 | )] |
| 827 | fn zeroize_bound_enum() { |
| 828 | parse_zeroize_test(stringify!( |
| 829 | enum Z<T> { |
| 830 | #[zeroize(bound = "T: MyTrait")] |
| 831 | A(T), |
| 832 | } |
| 833 | )); |
| 834 | } |
| 835 | |
| 836 | #[test] |
| 837 | #[should_panic( |
nothing calls this directly
no test coverage detected