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