]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | // build-fail |
064997fb | 2 | // compile-flags: -Copt-level=0 |
487cf647 FG |
3 | // normalize-stderr-test: "long-type-\d+" -> "long-type-hash" |
4 | //~^^^ ERROR overflow evaluating the requirement | |
cdc7bbd5 XL |
5 | |
6 | fn main() { | |
7 | let mut iter = 0u8..1; | |
8 | func(&mut iter) | |
9 | } | |
10 | ||
5099ac24 | 11 | fn func<T: Iterator<Item = u8>>(iter: &mut T) { //~ WARN function cannot return without recursing |
cdc7bbd5 XL |
12 | func(&mut iter.map(|x| x + 1)) |
13 | } |