1 error: index out of bounds: the len is 1 but the index is 1
2 --> $DIR/issue-54348.rs:3:5
4 LL | [1][1.5 as usize];
7 = note: `#[deny(const_err)]` on by default
9 error: this expression will panic at runtime
10 --> $DIR/issue-54348.rs:3:5
12 LL | [1][1.5 as usize];
13 | ^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
15 error: index out of bounds: the len is 1 but the index is 1
16 --> $DIR/issue-54348.rs:5:5
18 LL | [1][1u64 as usize];
21 error: this expression will panic at runtime
22 --> $DIR/issue-54348.rs:5:5
24 LL | [1][1u64 as usize];
25 | ^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
27 error: aborting due to 4 previous errors