about summary refs log tree commit diff
path: root/compiler/rustc_parse/messages.ftl
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-03-08 00:02:11 +0000
committerMichael Goulet <michael@errs.io>2024-12-04 19:52:53 +0000
commit05c34cc5ed35dbf32f83e2eaa0ebbda4c4953294 (patch)
treec90ab2db52cef4b472db5291b58ed28038700053 /compiler/rustc_parse/messages.ftl
parent96e51d9482405e400dec53750f3b263d45784ada (diff)
downloadrust-05c34cc5ed35dbf32f83e2eaa0ebbda4c4953294.tar.gz
rust-05c34cc5ed35dbf32f83e2eaa0ebbda4c4953294.zip
Fix suggestion when shorthand self has erroneous type
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
-rw-r--r--compiler/rustc_parse/messages.ftl3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl
index b9a325eddd8..e5cd4622dae 100644
--- a/compiler/rustc_parse/messages.ftl
+++ b/compiler/rustc_parse/messages.ftl
@@ -343,6 +343,9 @@ parse_incorrect_semicolon =
     .suggestion = remove this semicolon
     .help = {$name} declarations are not followed by a semicolon
 
+parse_incorrect_type_on_self = type not allowed for shorthand `self` parameter
+    .suggestion = move the modifiers on `self` to the type
+
 parse_incorrect_use_of_await = incorrect use of `await`
     .parentheses_suggestion = `await` is not a method call, remove the parentheses