diff --git a/src/expand.rs b/src/expand.rs index 1eb27a2..5adba58 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -129,6 +129,7 @@ fn lint_suppress_with_body() -> Attribute { clippy::async_yields_async, clippy::diverging_sub_expression, clippy::let_unit_value, + clippy::needless_arbitrary_self_type, clippy::no_effect_underscore_binding, clippy::shadow_same, clippy::type_complexity, diff --git a/tests/test.rs b/tests/test.rs index 75252c2..6fd324d 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1641,3 +1641,22 @@ pub mod issue266 { } } } + +// https://github.com/dtolnay/async-trait/issues/277 +pub mod issue277 { + use async_trait::async_trait; + + #[async_trait] + pub trait Trait { + async fn f(&self); + } + + #[async_trait] + impl Trait for () { + async fn f(mut self: &Self) { + g(&mut self); + } + } + + fn g(_: &mut &()) {} +}