diff --git a/library/alloc/src/collections/binary_heap.rs b/library/alloc/src/collections/binary_heap.rs index 6154d03226f..73f119c680f 100644 --- a/library/alloc/src/collections/binary_heap.rs +++ b/library/alloc/src/collections/binary_heap.rs @@ -1175,7 +1175,7 @@ impl FusedIterator for IntoIter {} #[unstable(issue = "0", feature = "inplace_iteration")] unsafe impl SourceIter for IntoIter { - type Source = crate::vec::IntoIter; + type Source = impl Iterator; #[inline] fn as_inner(&mut self) -> &mut Self::Source { diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs index e755afe9606..5cbd9d380b0 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -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