summaryrefslogtreecommitdiff
path: root/tests/ui/consts/issue-50439.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/issue-50439.stderr')
-rw-r--r--tests/ui/consts/issue-50439.stderr10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ui/consts/issue-50439.stderr b/tests/ui/consts/issue-50439.stderr
index 3fbdf33b2d8..7a8cd45ecc7 100644
--- a/tests/ui/consts/issue-50439.stderr
+++ b/tests/ui/consts/issue-50439.stderr
@@ -6,5 +6,13 @@ LL | let _ = [(); 0 - !!(<Bears<T> as ReflectDrop>::REFLECT_DROP) as usi
|
= note: this may fail depending on what value the parameter takes
-error: aborting due to previous error
+error: constant expression depends on a generic parameter
+ --> $DIR/issue-50439.rs:25:17
+ |
+LL | let _ = [(); 0 - !!(<Bears<T> as ReflectDrop>::REFLECT_DROP) as usize];
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: this may fail depending on what value the parameter takes
+
+error: aborting due to 2 previous errors