Slightly improve no return for returning function error #100607
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: link
The current output is:
Ideally the output should look like have a small note directly behind "- help: remove this semicolon" that says " for implicit return". As I have witness a beginner getting confused as to why certain lines of code in a function require semicolon but not others. (The added note wording might need further amendments).
The text was updated successfully, but these errors were encountered: