Skip to content

Commit

Permalink
Update test to collect item with a different type than the original vec
Browse files Browse the repository at this point in the history
  • Loading branch information
SkiFire13 committed Feb 3, 2021
1 parent c6c8f3b commit 2fb56cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/tests/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ fn test_from_iter_specialization_with_iterator_adapters() {
.map_while(Option::Some)
.peekable()
.skip(1)
.map(|e| if e != 0 { Ok(e) } else { Err(()) });
.map(|e| if e != usize::MAX { Ok(std::num::NonZeroUsize::new(e)) } else { Err(()) });
assert_in_place_trait(&iter);
let sink = iter.collect::<Result<Vec<_>, _>>().unwrap();
let sinkptr = sink.as_ptr();
Expand Down

0 comments on commit 2fb56cc

Please sign in to comment.