summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr')
-rw-r--r--tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr b/tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr
new file mode 100644
index 000000000..46a54a12d
--- /dev/null
+++ b/tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr
@@ -0,0 +1,11 @@
+error: generic parameters may not be used in const operations
+ --> $DIR/associated-const-type-parameter-arrays.rs:16:24
+ |
+LL | let _array: [u32; <A as Foo>::Y];
+ | ^ cannot perform const operation using `A`
+ |
+ = note: type parameters may not be used in const expressions
+ = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
+
+error: aborting due to previous error
+