aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 8bbb5b3..b326b4b 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -216,4 +216,8 @@ trait FunIter {
type A: std::error::Error;
fn foobar<F: Fn(&mut dyn Iterator<Item = Self::A>)>(&mut self, f: F);
+
+ fn foobar1<G: Fn(Option<&mut dyn Iterator<Item = Self::A>>)>(&mut self, f: G);
+
+ fn foobar2<H: Fn(&mut dyn Iterator<Item = &mut dyn Iterator<Item = Self::A>>)>(&mut self, f: H);
}