]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/const-array-oob.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / const-array-oob.rs
index faabed4fd5e422d5f73ba2a92fc8b705848d8c72..b980bc02c85a24fb22a4d7cb0e161768a0b858fa 100644 (file)
@@ -16,7 +16,8 @@ const FOO: [u32; 3] = [1, 2, 3];
 const BAR: u32 = FOO[5]; // no error, because the error below occurs before regular const eval
 
 const BLUB: [u32; FOO[4]] = [5, 6];
-//~^ ERROR array length constant evaluation error: index out of bounds: the len is 3 but the index is 4 [E0250]
+//~^ ERROR constant evaluation error [E0080]
+//~| index out of bounds: the len is 3 but the index is 4
 
 fn main() {
     let _ = BAR;