diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 8bd8db3b7e29..bdac38e91202 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -3024,6 +3024,7 @@ impl Vec { /// let reshaped: Vec<[[[u8; 8]; 8]; 8]> = flat.into_chunks().into_chunks().into_chunks(); /// assert_eq!(reshaped.len(), 1); /// ``` + #[cfg(not(no_global_oom_handling))] #[unstable(feature = "vec_into_chunks", issue = "142137")] pub fn into_chunks(mut self) -> Vec<[T; N], A> { const {