From b331b8b96d86a6433df957a3cc49ed51f3656135 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 28 May 2025 10:29:08 +0000 Subject: Use the informative error as the main const eval error message --- tests/ui/array-slice-vec/array_const_index-0.stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ui/array-slice-vec/array_const_index-0.stderr') 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 d16e8d50dfd..ed9d9917ebf 100644 --- a/tests/ui/array-slice-vec/array_const_index-0.stderr +++ b/tests/ui/array-slice-vec/array_const_index-0.stderr @@ -1,8 +1,8 @@ -error[E0080]: evaluation of constant value failed +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]; - | ^^^^^^^ index out of bounds: the length is 0 but the index is 1 + | ^^^^^^^ evaluation of constant value failed error: aborting due to 1 previous error -- cgit 1.4.1-3-g733a5