about summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr')
-rw-r--r--src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr b/src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr
new file mode 100644
index 00000000000..43b42d82d0c
--- /dev/null
+++ b/src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr
@@ -0,0 +1,10 @@
+error: constant expression depends on a generic parameter
+  --> $DIR/generic-function-call-in-array-length.rs:9:29
+   |
+LL | fn bar<const N: usize>() -> [u32; foo(N)] {
+   |                             ^^^^^^^^^^^^^
+   |
+   = note: this may fail depending on what value the parameter takes
+
+error: aborting due to previous error
+