fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error: index out of bounds: the len is 1 but the index is 1 2 --> $DIR/issue-54348.rs:3:5 3 | 4LL | [1][1.5 as usize]; 5 | ^^^^^^^^^^^^^^^^^ 6 | 7 = note: `#[deny(const_err)]` on by default 8 9error: this expression will panic at runtime 10 --> $DIR/issue-54348.rs:3:5 11 | 12LL | [1][1.5 as usize]; 13 | ^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1 14 15error: index out of bounds: the len is 1 but the index is 1 16 --> $DIR/issue-54348.rs:5:5 17 | 18LL | [1][1u64 as usize]; 19 | ^^^^^^^^^^^^^^^^^^ 20 21error: this expression will panic at runtime 22 --> $DIR/issue-54348.rs:5:5 23 | 24LL | [1][1u64 as usize]; 25 | ^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1 26 27error: aborting due to 4 previous errors 28