summaryrefslogtreecommitdiffstats
path: root/tests/ui/simd/array-trait.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/simd/array-trait.stderr')
-rw-r--r--tests/ui/simd/array-trait.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/simd/array-trait.stderr b/tests/ui/simd/array-trait.stderr
new file mode 100644
index 000000000..765215c39
--- /dev/null
+++ b/tests/ui/simd/array-trait.stderr
@@ -0,0 +1,10 @@
+error: unconstrained generic constant
+ --> $DIR/array-trait.rs:23:23
+ |
+LL | pub struct T<S: Simd>([S::Lane; S::SIZE]);
+ | ^^^^^^^^^^^^^^^^^^
+ |
+ = help: try adding a `where` bound using this expression: `where [(); S::SIZE]:`
+
+error: aborting due to previous error
+