5 struct Array<T, const N: usize>([T; N]);
7 impl<T: fmt::Debug, const N: usize> fmt::Debug for Array<T, N> {
8 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
9 f.debug_list().entries(self.0.iter()).finish()
14 assert_eq!(format!("{:?}", Array([1, 2, 3])), "[1, 2, 3]");