// build-fail //~^ overflow evaluating fn main() { let mut iter = 0u8..1; func(&mut iter) } fn func>(iter: &mut T) { func(&mut iter.map(|x| x + 1)) }