diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 0248688733952..0cde803ae6136 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3906,6 +3906,7 @@ impl [T] { /// /// assert_eq!(&bytes, b"Hello, Wello!"); /// ``` + #[inline] #[stable(feature = "copy_within", since = "1.37.0")] #[track_caller] pub fn copy_within>(&mut self, src: R, dest: usize)