Skip to content

Commit deee79d

Browse files
committed
Add regression test for issue 1
1 parent 7d3d055 commit deee79d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,21 @@ pub async fn test_object_safe_with_default() {
116116
object.f().await;
117117
}
118118

119+
// https://github.com/dtolnay/async-trait/issues/1
120+
mod issue1 {
121+
use async_trait::async_trait;
122+
123+
#[async_trait]
124+
trait Trait {
125+
async fn f<U>(&self);
126+
}
127+
128+
#[async_trait]
129+
impl<T: Sync> Trait for Vec<T> {
130+
async fn f<U>(&self) {}
131+
}
132+
}
133+
119134
// https://github.com/dtolnay/async-trait/issues/2
120135
mod issue2 {
121136
use async_trait::async_trait;

0 commit comments

Comments
 (0)