aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 07:37:45 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 07:45:30 +0100
commit99a1e9f42e79a73e7ec3c08eb873d0ef271319d8 (patch)
tree61f8ab5ad1f2cee22f702ddbede95b3f425783f3 /tests
parentbacdafb4883d8f8ea06e498285c78f82de9a391b (diff)
support HashSet, BinaryHeap and BTreeSet
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 7801cfc..e004d61 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -204,7 +204,7 @@ fn test3<T: TypeWithSuper>(some: T) {
println!("{}", dyn_trait);
}
-use std::collections::{LinkedList, VecDeque};
+use std::collections::{BTreeSet, BinaryHeap, HashSet, LinkedList, VecDeque};
#[dynamize::dynamize]
trait Collections {
@@ -220,6 +220,17 @@ trait Collections {
}
#[dynamize::dynamize]
+trait CollectionsRequiringEq {
+ type A: Into<String>;
+
+ fn hashset(&self) -> HashSet<Self::A>;
+
+ fn binary_heap(&self) -> BinaryHeap<Self::A>;
+
+ fn btree_set(&self) -> BTreeSet<Self::A>;
+}
+
+#[dynamize::dynamize]
trait ReturnIter {
type A: std::error::Error;