Skip to content

Commit aee7a9e

Browse files
committed
Add regression test for issue 15
1 parent 9de1b2c commit aee7a9e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,16 @@ mod issue11 {
176176
async fn example(self: Arc<Self>) {}
177177
}
178178
}
179+
180+
// https://github.com/dtolnay/async-trait/issues/15
181+
mod issue15 {
182+
use async_trait::async_trait;
183+
use std::marker::PhantomData;
184+
185+
trait Trait {}
186+
187+
#[async_trait]
188+
trait Issue15 {
189+
async fn myfn(&self, _: PhantomData<dyn Trait + Send>) {}
190+
}
191+
}

0 commit comments

Comments
 (0)