diff options
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 13 |
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; |