about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/array_const_index-0.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-04-09 02:19:37 +0000
committerbors <bors@rust-lang.org>2025-04-09 02:19:37 +0000
commitc1b8b7e86f6ca59929ce08471d0877f748f84901 (patch)
tree6b0fc743ed6b6ec538b8f465436d570acd670b25 /tests/ui/array-slice-vec/array_const_index-0.rs
parentde5b8a4c77618d8ae8e8ea0e4b787917c32e9305 (diff)
parentb3f75353a237f3623483c1e237be480140a8c3e1 (diff)
downloadrust-c1b8b7e86f6ca59929ce08471d0877f748f84901.tar.gz
rust-c1b8b7e86f6ca59929ce08471d0877f748f84901.zip
Auto merge of #139555 - petrochenkov:errkind-ann, r=jieyouxu
UI tests: add missing diagnostic kinds where possible

The subset of https://github.com/rust-lang/rust/pull/139427 that only adds diagnostic kinds to line annotations, without changing any other things in annotations or compiletest.
After this only non-viral `NOTE`s and `HELP`s should be missing.

r? `@jieyouxu`
Diffstat (limited to 'tests/ui/array-slice-vec/array_const_index-0.rs')
-rw-r--r--tests/ui/array-slice-vec/array_const_index-0.rs2
1 files changed, 1 insertions, 1 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() {