File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,8 @@ impl<T: Copy> SpecArrayClone for T {
434
434
macro_rules! array_impl_default {
435
435
{ $n: expr, $t: ident $( $ts: ident) * } => {
436
436
#[ stable( since = "1.4.0" , feature = "array_default" ) ]
437
- impl <T > Default for [ T ; $n] where T : Default {
437
+ #[ rustc_const_unstable( feature = "const_default_impls" , issue = "87864" ) ]
438
+ impl <T > const Default for [ T ; $n] where T : ~const Default {
438
439
fn default ( ) -> [ T ; $n] {
439
440
[ $t:: default ( ) , $( $ts:: default ( ) ) ,* ]
440
441
}
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ macro_rules! tuple_impls {
93
93
maybe_tuple_doc! {
94
94
$( $T) + @
95
95
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
96
- impl <$( $T: Default ) ,+> Default for ( $( $T, ) +) {
96
+ #[ rustc_const_unstable( feature = "const_default_impls" , issue = "87864" ) ]
97
+ impl <$( $T: ~const Default ) ,+> const Default for ( $( $T, ) +) {
97
98
#[ inline]
98
99
fn default ( ) -> ( $( $T, ) +) {
99
100
( $( { let x: $T = Default :: default ( ) ; x} , ) +)
You can’t perform that action at this time.
0 commit comments