Skip to content

Commit 6f54d54

Browse files
author
Oliver Schneider
committed
old error message is back
1 parent 56eb057 commit 6f54d54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/compile-fail/array_const_index-0.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
// except according to those terms.
1010

1111
static A: &'static [i32] = &[];
12-
static B: i32 = (&A)[1]; //~ ERROR: array index out of bounds
13-
//~^ ERROR: constant indexing failed
12+
static B: i32 = (&A)[1]; //~ ERROR: const index-expr is out of bounds
1413

1514
fn main() {
1615
let _ = B;

0 commit comments

Comments
 (0)