In playing with impl trait this morning, I noticed that if you do the classic "oops, I left a ; after my return value" error, instead of the helpful message asking if you meant to have the semi-colon, you get this:

We should definitely try to cover this case too with the same improved error messages we have for other return types.
In playing with impl trait this morning, I noticed that if you do the classic "oops, I left a ; after my return value" error, instead of the helpful message asking if you meant to have the semi-colon, you get this:
We should definitely try to cover this case too with the same improved error messages we have for other return types.