]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-err2.stderr
Merge branch 'master' into rusty-hermit
[rust.git] / src / test / ui / consts / const-err2.stderr
index 1d84d44dc27b3c834400ad29840aae4a0e9d54d3..0a09a7213dabc8f6596c2351ddaacf9521d69570 100644 (file)
@@ -34,5 +34,11 @@ error: index out of bounds: the len is 1 but the index is 1
 LL |     let _e = [5u8][1];
    |              ^^^^^^^^
 
-error: aborting due to 5 previous errors
+error: this expression will panic at runtime
+  --> $DIR/const-err2.rs:24:14
+   |
+LL |     let _e = [5u8][1];
+   |              ^^^^^^^^ index out of bounds: the len is 1 but the index is 1
+
+error: aborting due to 6 previous errors