Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add note to test about Unfuse
  • Loading branch information
timvermeulen committed Jul 18, 2022
commit e52837c362d00fb7672dacb30de58dd114d2811e
3 changes: 3 additions & 0 deletions library/core/tests/iter/adapters/skip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,8 @@ fn test_skip_nth_back() {
#[test]
fn test_skip_non_fused() {
let non_fused = Unfuse::new(0..10);

// `Skip` would previously exhaust the iterator in this `next` call and then erroneously try to
// advance it further. `Unfuse` tests that this doesn't happen by panicking in that scenario.
let _ = non_fused.skip(20).next();
}