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 bbceb93 commit e2f544fCopy full SHA for e2f544f
tests/test.rs
@@ -204,3 +204,24 @@ mod issue15 {
204
async fn myfn(&self, _: PhantomData<dyn Trait + Send>) {}
205
}
206
207
+
208
+// https://github.com/dtolnay/async-trait/issues/17
209
+mod issue17 {
210
+ use async_trait::async_trait;
211
212
+ #[async_trait]
213
+ trait Issue17 {
214
+ async fn f(&self);
215
+ }
216
217
+ struct Struct {
218
+ string: String,
219
220
221
222
+ impl Issue17 for Struct {
223
+ async fn f(&self) {
224
+ println!("{}", self.string);
225
226
227
+}
0 commit comments