about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/core_simd/src/array.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/core_simd/src/array.rs b/crates/core_simd/src/array.rs
index 202a44f4118..83fd3878a35 100644
--- a/crates/core_simd/src/array.rs
+++ b/crates/core_simd/src/array.rs
@@ -15,6 +15,8 @@ where
 {
     /// The scalar type in every lane of this vector type.
     type Scalar: Copy + Sized;
+    /// The number of lanes for this vector.
+    const LANES: usize = LANES;
 
     /// Generates a SIMD vector with the same value in every lane.
     #[must_use]