fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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