From 7b794d4178679747a9d32b2dc096da815ac6e33f Mon Sep 17 00:00:00 2001 From: reez12g Date: Sat, 20 Aug 2022 11:52:38 +0900 Subject: [PATCH] Improve the message for parser_incorrect_semicolon --- compiler/rustc_error_messages/locales/en-US/parser.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_error_messages/locales/en-US/parser.ftl b/compiler/rustc_error_messages/locales/en-US/parser.ftl index 7e58375361835..cea177e455c90 100644 --- a/compiler/rustc_error_messages/locales/en-US/parser.ftl +++ b/compiler/rustc_error_messages/locales/en-US/parser.ftl @@ -21,7 +21,7 @@ parser_maybe_recover_from_bad_qpath_stage_2 = parser_incorrect_semicolon = expected item, found `;` - .suggestion = remove this semicolon + .suggestion = remove this semicolon for implicit return .help = {$name} declarations are not followed by a semicolon parser_incorrect_use_of_await =