]> git.lizzy.rs Git - rust.git/blobdiff - crates/core_simd/src/vectors_i16.rs
Add missing type bounds
[rust.git] / crates / core_simd / src / vectors_i16.rs
index 08cc4af2a5ea419ab2f7f0b9fb706a864aea3796..d77e593a2edc46b40065499c7ab233765bcc0667 100644 (file)
@@ -2,7 +2,9 @@
 
 /// A SIMD vector of containing `LANES` `i16` values.
 #[repr(simd)]
-pub struct SimdI16<const LANES: usize>([i16; LANES]);
+pub struct SimdI16<const LANES: usize>([i16; LANES])
+where
+    Self: crate::LanesAtMost64;
 
 impl_integer_vector! { SimdI16, i16 }