about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-04-10 14:24:19 +0200
committerRalf Jung <post@ralfj.de>2025-04-10 14:24:19 +0200
commitf69ea4d82fdbf0fefc36118071bb69ec6253a285 (patch)
tree351b40fa66750fb4eac0449318a360cf1167efd3 /tests/ui/array-slice-vec
parent830c58be89e4717ca2c1e08f17d1e027707334e9 (diff)
parent7d7de5bf3c3cbf9c2c5bbc5cbfb9197a8a427d35 (diff)
downloadrust-f69ea4d82fdbf0fefc36118071bb69ec6253a285.tar.gz
rust-f69ea4d82fdbf0fefc36118071bb69ec6253a285.zip
Merge from rustc
Diffstat (limited to 'tests/ui/array-slice-vec')
-rw-r--r--tests/ui/array-slice-vec/array_const_index-0.rs2
-rw-r--r--tests/ui/array-slice-vec/array_const_index-1.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/array-slice-vec/array_const_index-0.rs b/tests/ui/array-slice-vec/array_const_index-0.rs
index 96755802ec7..f4fe89a50c2 100644
--- a/tests/ui/array-slice-vec/array_const_index-0.rs
+++ b/tests/ui/array-slice-vec/array_const_index-0.rs
@@ -1,6 +1,6 @@
 const A: &'static [i32] = &[];
 const B: i32 = (&A)[1];
-//~^ index out of bounds: the length is 0 but the index is 1
+//~^ NOTE index out of bounds: the length is 0 but the index is 1
 //~| ERROR evaluation of constant value failed
 
 fn main() {
diff --git a/tests/ui/array-slice-vec/array_const_index-1.rs b/tests/ui/array-slice-vec/array_const_index-1.rs
index 625bf06a745..0d4de137a6e 100644
--- a/tests/ui/array-slice-vec/array_const_index-1.rs
+++ b/tests/ui/array-slice-vec/array_const_index-1.rs
@@ -1,6 +1,6 @@
 const A: [i32; 0] = [];
 const B: i32 = A[1];
-//~^ index out of bounds: the length is 0 but the index is 1
+//~^ NOTE index out of bounds: the length is 0 but the index is 1
 //~| ERROR evaluation of constant value failed
 
 fn main() {