Closed
Description
The following example no longer throws a warning about indices being out of bounds, on master:
fn main() {
let a: [i32; 1] = [0; 1];
a[1];
}
I expect a index out of bounds: the len is 1 but the index is 1
error. I suspect this is due to #46882.
cc @oli-obk