()
| 838 | expected = "The #[zeroize(bound)] attribute is not allowed on enum fields. Use it on the containing enum instead." |
| 839 | )] |
| 840 | fn zeroize_bound_enum_variant_field() { |
| 841 | parse_zeroize_test(stringify!( |
| 842 | enum Z<T> { |
| 843 | A { |
| 844 | #[zeroize(bound = "T: MyTrait")] |
| 845 | a: T, |
| 846 | }, |
| 847 | } |
| 848 | )); |
| 849 | } |
| 850 | |
| 851 | #[test] |
| 852 | #[should_panic( |
nothing calls this directly
no test coverage detected