aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index bae52bd..7801cfc 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -204,6 +204,21 @@ fn test3<T: TypeWithSuper>(some: T) {
println!("{}", dyn_trait);
}
+use std::collections::{LinkedList, VecDeque};
+
+#[dynamize::dynamize]
+trait Collections {
+ type A: std::error::Error;
+
+ fn vec(&self) -> Vec<Self::A>;
+
+ fn vec_deque(&self) -> VecDeque<Self::A>;
+
+ fn linked_list(&self) -> LinkedList<Self::A>;
+
+ fn vec_opt(&self) -> Vec<Option<Self::A>>;
+}
+
#[dynamize::dynamize]
trait ReturnIter {
type A: std::error::Error;