File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5097,14 +5097,14 @@ impl<'a> Parser<'a> {
5097
5097
kind : ast:: GenericParamKind :: Lifetime ,
5098
5098
} ) ;
5099
5099
enforce_param_order ( & self , & mut max_param, ParamKindOrd :: Lifetime ) ;
5100
- } else if self . check_ident ( ) {
5101
- // Parse type parameter.
5102
- params. push ( self . parse_ty_param ( attrs) ?) ;
5103
- enforce_param_order ( & self , & mut max_param, ParamKindOrd :: Type ) ;
5104
5100
} else if self . check_const_param ( ) {
5105
5101
// Parse const parameter.
5106
5102
params. push ( self . parse_const_param ( attrs) ?) ;
5107
5103
enforce_param_order ( & self , & mut max_param, ParamKindOrd :: Const ) ;
5104
+ } else if self . check_ident ( ) {
5105
+ // Parse type parameter.
5106
+ params. push ( self . parse_ty_param ( attrs) ?) ;
5107
+ enforce_param_order ( & self , & mut max_param, ParamKindOrd :: Type ) ;
5108
5108
} else {
5109
5109
// Check for trailing attributes and stop parsing.
5110
5110
if !attrs. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments