2 //! Check that type lengths don't explode with `Map` folds.
4 //! The normal limit is a million, and this test used to exceed 1.5 million, but
5 //! now we can survive an even tighter limit. Still seems excessive though...
6 #![type_length_limit = "256000"]
8 // Custom wrapper so Iterator methods aren't specialized.
11 impl<I> Iterator for Iter<I>
17 fn next(&mut self) -> Option<Self::Item> {
23 let c = Iter(0i32..10)