The following piece of code errors with expected usize value for array length, got repeat
. Seems like I ended up forwarding the wrong expression during the computation of a const repeat.
#![feature(const_indexing)]
const X: [usize; 5] = [5; 5];
fn main() {
let _: [i32; X[0]];
}