about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/array_const_index-0.stderr
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-06-07 11:32:09 +0200
committerRalf Jung <post@ralfj.de>2025-06-07 13:42:30 +0200
commit17946c22b1d7abd2dd990bf6998c8491b534fe62 (patch)
tree3483beea28e6753a04055cc17a0145e77b036b30 /tests/ui/array-slice-vec/array_const_index-0.stderr
parent1dc9ae6d104205f194d84643d13fd01904a0010d (diff)
downloadrust-17946c22b1d7abd2dd990bf6998c8491b534fe62.tar.gz
rust-17946c22b1d7abd2dd990bf6998c8491b534fe62.zip
const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
Diffstat (limited to 'tests/ui/array-slice-vec/array_const_index-0.stderr')
-rw-r--r--tests/ui/array-slice-vec/array_const_index-0.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/array-slice-vec/array_const_index-0.stderr b/tests/ui/array-slice-vec/array_const_index-0.stderr
index 1080705713b..04cb6849663 100644
--- a/tests/ui/array-slice-vec/array_const_index-0.stderr
+++ b/tests/ui/array-slice-vec/array_const_index-0.stderr
@@ -2,7 +2,7 @@ error[E0080]: index out of bounds: the length is 0 but the index is 1
   --> $DIR/array_const_index-0.rs:2:16
    |
 LL | const B: i32 = (&A)[1];
-   |                ^^^^^^^ evaluation of constant value failed here
+   |                ^^^^^^^ evaluation of `B` failed here
 
 error: aborting due to 1 previous error