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 7d3d055 commit deee79dCopy full SHA for deee79d
tests/test.rs
@@ -116,6 +116,21 @@ pub async fn test_object_safe_with_default() {
116
object.f().await;
117
}
118
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
129
+ impl<T: Sync> Trait for Vec<T> {
130
+ async fn f<U>(&self) {}
131
132
+}
133
134
// https://github.com/dtolnay/async-trait/issues/2
135
mod issue2 {
136
use async_trait::async_trait;
0 commit comments