()
| 812 | expected = "The #[zeroize(bound)] attribute is not allowed on struct fields. Use it on the containing struct instead." |
| 813 | )] |
| 814 | fn zeroize_bound_struct() { |
| 815 | parse_zeroize_test(stringify!( |
| 816 | struct Z<T> { |
| 817 | #[zeroize(bound = "T: MyTrait")] |
| 818 | a: T, |
| 819 | } |
| 820 | )); |
| 821 | } |
| 822 | |
| 823 | #[test] |
| 824 | #[should_panic( |
nothing calls this directly
no test coverage detected