1 //! Check that fold closures aren't generic in the iterator type.
2 // compile-flags: -C opt-level=0
5 (0i32..10).by_ref().count();
8 // `count` calls `fold`, which calls `try_fold` -- that `fold` closure should
9 // not be generic in the iterator type, only in the item type.
10 // CHECK-NOT: {{^define.*Iterator::fold::.*closure.*Range}}