2 #![allow(unused_must_use)]
5 #![allow(unused_variables)]
6 // Regression test for type inference failure around shifting. In this
7 // case, the iteration yields an isize, but we hadn't run the full type
8 // propagation yet, and so we just saw a type variable, yielding an
11 // pretty-expanded FIXME #23616
16 fn into_iter(self) -> Self::Iter;
19 impl<I> IntoIterator for I where I: Iterator {
22 fn into_iter(self) -> I {
27 fn desugared_for_loop_bad(byte: u8) -> u8 {
29 let mut x = IntoIterator::into_iter(0..8);
30 let mut y = Iterator::next(&mut x);
31 let mut z = y.unwrap();