/// Copying four bytes within a slice:
///
/// ```
- /// # #![feature(copy_within)]
/// let mut bytes = *b"Hello, World!";
///
/// bytes.copy_within(1..5, 8);
///
/// assert_eq!(&bytes, b"Hello, Wello!");
/// ```
- #[unstable(feature = "copy_within", issue = "54236")]
+ #[stable(feature = "copy_within", since = "1.37.0")]
pub fn copy_within<R: ops::RangeBounds<usize>>(&mut self, src: R, dest: usize)
where
T: Copy,
#![feature(inner_deref)]
#![feature(slice_internals)]
#![feature(slice_partition_dedup)]
-#![feature(copy_within)]
#![feature(int_error_matching)]
#![feature(const_fn)]
#![warn(rust_2018_idioms)]