Use the sugary syntax to print the `Fn` traits in error messages
Merge pull request #19912 from P1start/fn-formatting

Use the sugary syntax to print the `Fn` traits in error messages

Reviewed-by: alexcrichton