We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[T; 0]
1 parent a015919 commit 16c7206Copy full SHA for 16c7206
library/core/src/array/mod.rs
@@ -472,6 +472,11 @@ impl<T: Copy> SpecArrayClone for T {
472
// The Default impls cannot be done with const generics because `[T; 0]` doesn't
473
// require Default to be implemented, and having different impl blocks for
474
// different numbers isn't supported yet.
475
+//
476
+// Trying to improve the `[T; 0]` situation has proven to be difficult.
477
+// Please see these issues for more context on past attempts and crater runs:
478
+// - https://github.com/rust-lang/rust/issues/61415
479
+// - https://github.com/rust-lang/rust/pull/145457
480
481
macro_rules! array_impl_default {
482
{$n:expr, $t:ident $($ts:ident)*} => {
0 commit comments