1 // Evaluation of constants in array-elem count goes through different
2 // compiler control-flow paths.
4 // This test is checking the count in an array expression.
12 #![allow(unused_imports)]
15 use std::{i8, i16, i32, i64, isize};
16 use std::{u8, u16, u32, u64, usize};
19 : [u32; (i8::MAX as usize) + 1]
20 = [0; (i8::MAX + 1) as usize];
21 //~^ ERROR evaluation of constant value failed
27 fn foo<T:fmt::Debug>(x: T) {