We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5801109 commit 93fa023Copy full SHA for 93fa023
library/core/src/array/mod.rs
@@ -353,8 +353,9 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
353
}
354
355
356
-// The Default impls cannot be generated using the array_impls! macro because
357
-// they require array literals.
+// The Default impls cannot be done with const generics because `[T; 0]` doesn't
+// require Default to be implemented, and having different impl blocks for
358
+// different numbers isn't supported yet.
359
360
macro_rules! array_impl_default {
361
{$n:expr, $t:ident $($ts:ident)*} => {
0 commit comments