aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 06:36:37 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 07:45:30 +0100
commitbacdafb4883d8f8ea06e498285c78f82de9a391b (patch)
tree30f3f795e2b8c4895cea7e708ca4a1fe46eedd0c /tests/tests.rs
parenta973a628ec051ab9483fde7d694bb261bb793178 (diff)
support Vec, VecDeque & LinkedList collections
Diffstat (limited to 'tests/tests.rs')
-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;