hide binary_heap::IntoIter internals behind impl Trait

This commit is contained in:
The8472 2019-11-17 12:04:12 +01:00
parent b90816deb7
commit 07a8c1b95a
2 changed files with 2 additions and 1 deletions

View file

@ -1175,7 +1175,7 @@ impl<T> FusedIterator for IntoIter<T> {}
#[unstable(issue = "0", feature = "inplace_iteration")]
unsafe impl<T> SourceIter for IntoIter<T> {
type Source = crate::vec::IntoIter<T>;
type Source = impl Iterator<Item = T>;
#[inline]
fn as_inner(&mut self) -> &mut Self::Source {

View file

@ -136,6 +136,7 @@
#![feature(maybe_uninit_extra, maybe_uninit_slice)]
#![feature(alloc_layout_extra)]
#![feature(try_trait)]
#![feature(type_alias_impl_trait)]
#![feature(associated_type_bounds)]
// Allow testing this library