()
| 853 | expected = "The #[zeroize(bound)] attribute expects a name-value syntax with a string literal value.E.g. #[zeroize(bound = \"T: MyTrait\")]." |
| 854 | )] |
| 855 | fn zeroize_bound_no_value() { |
| 856 | parse_zeroize_test(stringify!( |
| 857 | #[zeroize(bound)] |
| 858 | struct Z<T>(T); |
| 859 | )); |
| 860 | } |
| 861 | |
| 862 | #[test] |
| 863 | #[should_panic(expected = "error parsing bounds: LitStr { token: \"T\" } (expected `:`)")] |
nothing calls this directly
no test coverage detected