@@ -475,7 +475,8 @@ impl<'a> PathSource<'a> {
475
475
} ,
476
476
_ => "value" ,
477
477
} ,
478
- PathSource :: ReturnTypeNotation | PathSource :: Delegation => "function" ,
478
+ PathSource :: Delegation => "function" ,
479
+ PathSource :: ReturnTypeNotation => "associated function" ,
479
480
PathSource :: PreciseCapturingArg ( ..) => "type or const parameter" ,
480
481
}
481
482
}
@@ -573,10 +574,12 @@ impl<'a> PathSource<'a> {
573
574
( PathSource :: Expr ( ..) , false ) | ( PathSource :: Delegation , false ) => E0425 ,
574
575
( PathSource :: Pat | PathSource :: TupleStruct ( ..) , true ) => E0532 ,
575
576
( PathSource :: Pat | PathSource :: TupleStruct ( ..) , false ) => E0531 ,
576
- ( PathSource :: TraitItem ( ..) , true ) | ( PathSource :: ReturnTypeNotation , true ) => E0575 ,
577
- ( PathSource :: TraitItem ( ..) , false ) | ( PathSource :: ReturnTypeNotation , false ) => E0576 ,
577
+ ( PathSource :: TraitItem ( ..) , true ) => E0575 ,
578
+ ( PathSource :: TraitItem ( ..) , false ) => E0576 ,
578
579
( PathSource :: PreciseCapturingArg ( ..) , true ) => E0799 ,
579
580
( PathSource :: PreciseCapturingArg ( ..) , false ) => E0800 ,
581
+ ( PathSource :: ReturnTypeNotation , true ) => E0801 ,
582
+ ( PathSource :: ReturnTypeNotation , false ) => E0802 ,
580
583
}
581
584
}
582
585
}
0 commit comments