From 57641e00d6ed1fd7689c3079abb10f67d5387143 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 21 Nov 2021 09:37:32 +0100 Subject: support -> &mut dyn Iterator --- tests/tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') 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(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; +} + +#[dynamize::dynamize] +trait FunIter { + type A: std::error::Error; + + fn foobar)>(&mut self, f: F); +} -- cgit v1.2.3