2021-08-27 11:04:57 -05:00
|
|
|
error: unconstrained generic constant
|
2021-10-04 19:55:38 -05:00
|
|
|
--> $DIR/array-trait.rs:23:23
|
2020-11-14 17:35:04 -06:00
|
|
|
|
|
|
|
|
LL | pub struct T<S: Simd>([S::Lane; S::SIZE]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-03-20 19:03:59 -05:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | pub struct T<S: Simd>([S::Lane; S::SIZE]) where [(); S::SIZE]:;
|
|
|
|
| ++++++++++++++++++++
|
2020-11-14 17:35:04 -06:00
|
|
|
|
2023-10-25 05:49:24 -05:00
|
|
|
error[E0077]: SIMD vector element type should be a primitive scalar (integer/float/pointer) type
|
|
|
|
--> $DIR/array-trait.rs:23:1
|
|
|
|
|
|
|
|
|
LL | pub struct T<S: Simd>([S::Lane; S::SIZE]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-02-09 06:17:55 -06:00
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/array-trait.rs:23:23
|
|
|
|
|
|
|
|
|
LL | #[derive(Copy, Clone)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | pub struct T<S: Simd>([S::Lane; S::SIZE]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-02-20 00:58:18 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2020-11-14 17:35:04 -06:00
|
|
|
|
2024-02-20 00:58:18 -06:00
|
|
|
For more information about this error, try `rustc --explain E0077`.
|