We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f025eff commit 55c669cCopy full SHA for 55c669c
src/libcore/tests/iter.rs
@@ -1565,11 +1565,11 @@ fn test_repeat_with_rev() {
1565
let mut curr = 1;
1566
let mut pow2 = repeat_with(|| { let tmp = curr; curr *= 2; tmp })
1567
.rev().take(4);
1568
- assert_eq!(it.next(), Some(1));
1569
- assert_eq!(it.next(), Some(2));
1570
- assert_eq!(it.next(), Some(4));
1571
- assert_eq!(it.next(), Some(8));
1572
- assert_eq!(it.next(), None);
+ assert_eq!(pow2.next(), Some(1));
+ assert_eq!(pow2.next(), Some(2));
+ assert_eq!(pow2.next(), Some(4));
+ assert_eq!(pow2.next(), Some(8));
+ assert_eq!(pow2.next(), None);
1573
}
1574
1575
#[test]
0 commit comments