2021-03-23 06:41:26 -05:00
|
|
|
// build-fail
|
2022-05-17 09:18:40 -05:00
|
|
|
// compile-flags: -Copt-level=0
|
2022-11-16 21:09:57 -06:00
|
|
|
// normalize-stderr-test: "long-type-\d+" -> "long-type-hash"
|
|
|
|
//~^^^ ERROR overflow evaluating the requirement
|
2023-06-09 16:56:16 -05:00
|
|
|
// ignore-compare-mode-next-solver (hangs)
|
2021-03-23 06:41:26 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut iter = 0u8..1;
|
|
|
|
func(&mut iter)
|
|
|
|
}
|
|
|
|
|
2022-01-13 18:00:00 -06:00
|
|
|
fn func<T: Iterator<Item = u8>>(iter: &mut T) { //~ WARN function cannot return without recursing
|
2021-03-23 06:41:26 -05:00
|
|
|
func(&mut iter.map(|x| x + 1))
|
|
|
|
}
|