@@ -163,8 +163,12 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[
163163
164164 // Allows the definition recursive static items.
165165 ( "static_recursion" , "1.3.0" , Active ) ,
166- // Allows default type parameters to influence type inference.
167- ( "default_type_parameter_fallback" , "1.3.0" , Active )
166+
167+ // Allows default type parameters to influence type inference.
168+ ( "default_type_parameter_fallback" , "1.3.0" , Active ) ,
169+
170+ // Allows associated type defaults
171+ ( "associated_type_defaults" , "1.2.0" , Active ) ,
168172] ;
169173// (changing above list without updating src/doc/reference.md makes @cmr sad)
170174
@@ -762,6 +766,10 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
762766 self . gate_feature ( "const_fn" , ti. span , "const fn is unstable" ) ;
763767 }
764768 }
769+ ast:: TypeTraitItem ( _, Some ( _) ) => {
770+ self . gate_feature ( "associated_type_defaults" , ti. span ,
771+ "associated type defaults are unstable" ) ;
772+ }
765773 _ => { }
766774 }
767775 visit:: walk_trait_item ( self , ti) ;
0 commit comments