diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index 475b7533a8bc6..b1be2a2a114f2 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -266,6 +266,7 @@ where /// let v = u32x4::from_slice(&source); /// assert_eq!(v.as_array(), &[1, 2, 3, 4]); /// ``` + #[must_use] #[inline] #[track_caller] pub const fn from_slice(slice: &[T]) -> Self {