rust/tests/ui/simd/array-trait.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

error: unconstrained generic constant
2021-10-04 19:55:38 -05:00
--> $DIR/array-trait.rs:23:23
|
LL | pub struct T<S: Simd>([S::Lane; S::SIZE]);
| ^^^^^^^^^^^^^^^^^^
|
help: try adding a `where` bound
|
LL | pub struct T<S: Simd>([S::Lane; S::SIZE]) where [(); S::SIZE]:;
| ++++++++++++++++++++
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]);
| ^^^^^^^^^^^^^^^^^^^^^
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
2024-02-20 00:58:18 -06:00
For more information about this error, try `rustc --explain E0077`.