2019-07-03 06:30:28 +09:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2017-02-09 19:39:46 +01:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47];
|
|
|
|
const IDX: usize = 3;
|
|
|
|
const VAL: i32 = ARR[IDX];
|
2018-01-16 09:24:38 +01:00
|
|
|
const BLUB: [i32; (ARR[0] - 41) as usize] = [5];
|
2017-02-09 19:39:46 +01:00
|
|
|
}
|