1 const ARR_LEN: usize = Tt::const_val::<[i8; 123]>();
2 //~^ ERROR type annotations needed
5 const fn const_val<T: Sized>() -> usize {
6 //~^ ERROR functions in traits cannot be declared const
7 core::mem::size_of::<T>()
11 fn f(z: [f32; ARR_LEN]) -> [f32; ARR_LEN] {
12 //~^ ERROR evaluation of constant value failed
13 //~| ERROR evaluation of constant value failed
18 let _ = f([1f32; ARR_LEN]);