]> git.proxmox.com Git - rustc.git/blame - src/test/ui/recursion/issue-83150.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / recursion / issue-83150.rs
CommitLineData
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
6fn main() {
7 let mut iter = 0u8..1;
8 func(&mut iter)
9}
10
5099ac24 11fn 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}