We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba252c commit 8b683c9Copy full SHA for 8b683c9
tests/test.rs
@@ -158,3 +158,21 @@ mod issue9 {
158
async fn f(_x: Self) {}
159
}
160
161
+
162
+// https://github.com/dtolnay/async-trait/issues/11
163
+mod issue11 {
164
+ use async_trait::async_trait;
165
+ use std::sync::Arc;
166
167
+ #[async_trait]
168
+ trait Issue11 {
169
+ async fn example(self: Arc<Self>);
170
+ }
171
172
+ struct Struct;
173
174
175
+ impl Issue11 for Struct {
176
+ async fn example(self: Arc<Self>) {}
177
178
+}
0 commit comments