We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5276ba7 commit 2a935f5Copy full SHA for 2a935f5
src/libcollections/vec.rs
@@ -1958,7 +1958,7 @@ impl<T> IntoIter<T> {
1958
/// assert_eq!(into_iter.next().unwrap(), 'z');
1959
/// ```
1960
#[stable(feature = "vec_into_iter_as_slice", since = "1.15.0")]
1961
- pub fn as_mut_slice(&self) -> &mut [T] {
+ pub fn as_mut_slice(&mut self) -> &mut [T] {
1962
unsafe {
1963
slice::from_raw_parts_mut(self.ptr as *mut T, self.len())
1964
}
0 commit comments