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 12:50:10 +0000
committerGitHub <noreply@github.com>2025-04-10 12:50:10 +0000
commit1347cc8f15f6d3ceae035f7226150da7ddcd83b8 (patch)
tree351b40fa66750fb4eac0449318a360cf1167efd3 /tests/ui/array-slice-vec
parent7da44400129c51c314eccdc0e703e99502b78c1a (diff)
parentf69ea4d82fdbf0fefc36118071bb69ec6253a285 (diff)
downloadrust-1347cc8f15f6d3ceae035f7226150da7ddcd83b8.tar.gz
rust-1347cc8f15f6d3ceae035f7226150da7ddcd83b8.zip
Merge pull request #4264 from RalfJung/rustup
Rustup
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() {