@@ -163,8 +163,12 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[
163
163
164
164
// Allows the definition recursive static items.
165
165
( "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 ) ,
168
172
] ;
169
173
// (changing above list without updating src/doc/reference.md makes @cmr sad)
170
174
@@ -762,6 +766,10 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
762
766
self . gate_feature ( "const_fn" , ti. span , "const fn is unstable" ) ;
763
767
}
764
768
}
769
+ ast:: TypeTraitItem ( _, Some ( _) ) => {
770
+ self . gate_feature ( "associated_type_defaults" , ti. span ,
771
+ "associated type defaults are unstable" ) ;
772
+ }
765
773
_ => { }
766
774
}
767
775
visit:: walk_trait_item ( self , ti) ;
0 commit comments