]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/index_out_of_bounds_propagated.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / index_out_of_bounds_propagated.stderr
index 9519ccd3c248a4c3dce1e7509fb529433aca00b7..4188efd021d1351558a0965a93d58097b6d1fe76 100644 (file)
@@ -1,10 +1,10 @@
-error: index out of bounds: the len is 1 but the index is 1
+error: this operation will panic at runtime
   --> $DIR/index_out_of_bounds_propagated.rs:5:5
    |
 LL |     array[1];
-   |     ^^^^^^^^
+   |     ^^^^^^^^ index out of bounds: the len is 1 but the index is 1
    |
-   = note: `#[deny(const_err)]` on by default
+   = note: `#[deny(unconditional_panic)]` on by default
 
 error: aborting due to previous error