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)]
17 : [u32; (i8::MAX as usize) + 1]
18 = [0; (i8::MAX + 1) as usize];
19 //~^ ERROR evaluation of constant value failed
25 fn foo<T:fmt::Debug>(x: T) {