We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Unfuse
1 parent 50c612f commit e52837cCopy full SHA for e52837c
library/core/tests/iter/adapters/skip.rs
@@ -196,5 +196,8 @@ fn test_skip_nth_back() {
196
#[test]
197
fn test_skip_non_fused() {
198
let non_fused = Unfuse::new(0..10);
199
+
200
+ // `Skip` would previously exhaust the iterator in this `next` call and then erroneously try to
201
+ // advance it further. `Unfuse` tests that this doesn't happen by panicking in that scenario.
202
let _ = non_fused.skip(20).next();
203
}
0 commit comments