@@ -475,7 +475,8 @@ impl<'a> PathSource<'a> {
475475 } ,
476476 _ => "value" ,
477477 } ,
478- PathSource :: ReturnTypeNotation | PathSource :: Delegation => "function" ,
478+ PathSource :: Delegation => "function" ,
479+ PathSource :: ReturnTypeNotation => "associated function" ,
479480 PathSource :: PreciseCapturingArg ( ..) => "type or const parameter" ,
480481 }
481482 }
@@ -573,10 +574,12 @@ impl<'a> PathSource<'a> {
573574 ( PathSource :: Expr ( ..) , false ) | ( PathSource :: Delegation , false ) => E0425 ,
574575 ( PathSource :: Pat | PathSource :: TupleStruct ( ..) , true ) => E0532 ,
575576 ( 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 ,
578579 ( PathSource :: PreciseCapturingArg ( ..) , true ) => E0799 ,
579580 ( PathSource :: PreciseCapturingArg ( ..) , false ) => E0800 ,
581+ ( PathSource :: ReturnTypeNotation , true ) => E0801 ,
582+ ( PathSource :: ReturnTypeNotation , false ) => E0802 ,
580583 }
581584 }
582585}
0 commit comments