From e5828bf9e12c6b5f955c91c7a59a2e22a3d57d0f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 28 Nov 2022 23:11:14 -0800 Subject: [PATCH] Add regression test for issue 210 --- tests/test.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test.rs b/tests/test.rs index 7c8b751..23d8f80 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1450,3 +1450,14 @@ pub mod issue204 { async fn g(arg: *const impl Trait); } } + +// https://github.com/dtolnay/async-trait/issues/210 +pub mod issue210 { + use async_trait::async_trait; + use std::sync::Arc; + + #[async_trait] + pub trait Trait { + async fn f(self: Arc) {} + } +}