ty_param<T>() -> [u8; std::mem::size_of::<T>()]1fn ty_param<T>() -> [u8; std::mem::size_of::<T>()] { 2 //~^ ERROR generic parameters may not be used in const operations 3 todo!() 4 } 5 const_param<const N: usize>() -> [u8; N + 1]6fn const_param<const N: usize>() -> [u8; N + 1] { 7 //~^ ERROR generic parameters may not be used in const operations 8 todo!() 9 } 10 main()11fn main() {} 12