diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-06-09 07:19:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 07:19:50 +0200 |
| commit | 4967fd24dec0b178e8766c0d5ce6146d2fd2c152 (patch) | |
| tree | 84784da83b710a97f9944b753c9d7717e37b631b /tests/ui/array-slice-vec/array_const_index-1.rs | |
| parent | 8290ab531ce162a920da5d3c625889697ff65375 (diff) | |
| parent | 7565e75591c2ef184bc7a359b3a436a62d45358a (diff) | |
| download | rust-4967fd24dec0b178e8766c0d5ce6146d2fd2c152.tar.gz rust-4967fd24dec0b178e8766c0d5ce6146d2fd2c152.zip | |
Merge pull request #2461 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'tests/ui/array-slice-vec/array_const_index-1.rs')
| -rw-r--r-- | tests/ui/array-slice-vec/array_const_index-1.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 0d4de137a6e..4adbd157ed0 100644 --- a/tests/ui/array-slice-vec/array_const_index-1.rs +++ b/tests/ui/array-slice-vec/array_const_index-1.rs @@ -1,7 +1,6 @@ const A: [i32; 0] = []; const B: i32 = A[1]; -//~^ NOTE index out of bounds: the length is 0 but the index is 1 -//~| ERROR evaluation of constant value failed +//~^ ERROR index out of bounds: the length is 0 but the index is 1 fn main() { let _ = B; |
