2 // Regression test for an obscure issue with the projection cache.
4 fn into_iter<I: Iterator>(a: &I) -> Groups<I> {
8 pub struct Groups<'a, I: 'a> {
12 impl<'a, I: Iterator> Iterator for Groups<'a, I> {
13 type Item = Group<'a, I>;
14 fn next(&mut self) -> Option<Self::Item> {
19 pub struct Group<'a, I: Iterator + 'a>
20 where I::Item: 'a // <-- needed to trigger ICE!
23 _ice_trigger: I::Item, // <-- needed to trigger ICE!
28 let _ = into_iter(&[0].iter().map(|_| 0)).map(|grp| {