()
| 617 | #[test] |
| 618 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on struct fields")] |
| 619 | fn zeroize_on_struct_field() { |
| 620 | parse_zeroize_test(stringify!( |
| 621 | struct Z { |
| 622 | #[zeroize(drop)] |
| 623 | a: String, |
| 624 | b: Vec<u8>, |
| 625 | c: [u8; 3], |
| 626 | } |
| 627 | )); |
| 628 | } |
| 629 | |
| 630 | #[test] |
| 631 | #[should_panic(expected = "#[zeroize(drop)] attribute is not allowed on struct fields")] |
nothing calls this directly
no test coverage detected