diff --git a/src/expand.rs b/src/expand.rs index 8ce395f..3e25b2b 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -128,7 +128,8 @@ fn lint_suppress_with_body() -> Attribute { clippy::no_effect_underscore_binding, clippy::type_complexity, clippy::type_repetition_in_bounds, - clippy::used_underscore_binding + clippy::used_underscore_binding, + clippy::shadow_same )] } } diff --git a/tests/test.rs b/tests/test.rs index ac764b7..36d0267 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1377,3 +1377,13 @@ pub mod issue169 { pub fn test(_t: &dyn Trait) {} } + +// https://github.com/dtolnay/async-trait/issues/183 +pub mod issue183 { + #![deny(clippy::shadow_same)] + + #[async_trait::async_trait] + trait Foo { + async fn foo(_n: i32) {} + } +} \ No newline at end of file