slightly improve no return for returning function error

This commit is contained in:
Rageking8
2022-10-04 16:46:12 +08:00
parent d9f8b4b985
commit 5ddaece650
12 changed files with 18 additions and 19 deletions

View File

@@ -1122,7 +1122,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
} else {
err.span_suggestion_short(
span_semi,
"remove this semicolon",
"remove this semicolon to return this value",
"",
Applicability::MachineApplicable,
);