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