fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
481 B16 linesraw
1error: this operation will panic at runtime
2  --> $DIR/issue-54348.rs:5:5
3   |
4LL |     [1][1.5 as usize];
5   |     ^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
6   |
7   = note: `#[deny(unconditional_panic)]` on by default
8
9error: this operation will panic at runtime
10  --> $DIR/issue-54348.rs:6:5
11   |
12LL |     [1][1u64 as usize];
13   |     ^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
14
15error: aborting due to 2 previous errors
16