aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-21 19:52:30 +0100
committerMartin Fischer <martin@push-f.com>2021-11-21 19:54:46 +0100
commit0dd8413eca378e5dc2e6cbdc6f9c6f8bde604e4a (patch)
treee191baf60e478ed040c6a865cb7676f3465860b4 /tests
parent23fcd4ef079ad2b4aed69b4f363cbb9e7102c4ed (diff)
support boxed Iterator in Option
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);
}