diff --git a/tests/test_lints.rs b/tests/test_lints.rs index b46a391..d272454 100644 --- a/tests/test_lints.rs +++ b/tests/test_lints.rs @@ -64,6 +64,16 @@ fn test_deprecated() { Variant, } + #[derive(Error, Debug)] + pub enum DeprecatedFrom { + #[error(transparent)] + Variant( + #[from] + #[allow(deprecated)] + DeprecatedStruct, + ), + } + #[allow(deprecated)] let _: DeprecatedStruct; #[allow(deprecated)]