We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56eb057 commit 6f54d54Copy full SHA for 6f54d54
src/test/compile-fail/array_const_index-0.rs
@@ -9,8 +9,7 @@
9
// except according to those terms.
10
11
static A: &'static [i32] = &[];
12
-static B: i32 = (&A)[1]; //~ ERROR: array index out of bounds
13
-//~^ ERROR: constant indexing failed
+static B: i32 = (&A)[1]; //~ ERROR: const index-expr is out of bounds
14
15
fn main() {
16
let _ = B;
0 commit comments