aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 3139185..8bbb5b3 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -203,3 +203,17 @@ fn test3<T: TypeWithSuper>(some: T) {
let dyn_trait: &dyn DynTypeWithSuper = &some;
println!("{}", dyn_trait);
}
+
+#[dynamize::dynamize]
+trait ReturnIter {
+ type A: std::error::Error;
+
+ fn foobar(&mut self, text: &str) -> &mut dyn Iterator<Item = Self::A>;
+}
+
+#[dynamize::dynamize]
+trait FunIter {
+ type A: std::error::Error;
+
+ fn foobar<F: Fn(&mut dyn Iterator<Item = Self::A>)>(&mut self, f: F);
+}