diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-07-30 18:00:53 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-11 16:58:21 -0500 |
| commit | 3aa0ac0a8af32f2c5da106c5e89bd9712d5a9655 (patch) | |
| tree | 8eb1d8cae95b4d555250443f0eb14972125a95f4 /compiler/rustc_parse/messages.ftl | |
| parent | fa733909edadf390cde8c36c303bce42d37f7a3b (diff) | |
| download | rust-3aa0ac0a8af32f2c5da106c5e89bd9712d5a9655.tar.gz rust-3aa0ac0a8af32f2c5da106c5e89bd9712d5a9655.zip | |
Tweak trait modifier errors
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index 7970d8d552f..3a21eea3d0a 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -869,10 +869,10 @@ parse_trait_alias_cannot_be_auto = trait aliases cannot be `auto` parse_trait_alias_cannot_be_const = trait aliases cannot be `const` parse_trait_alias_cannot_be_unsafe = trait aliases cannot be `unsafe` -parse_trait_impl_modifier_in_inherent_impl = inherent impls cannot be {$annotation} - .because = {$annotation} because of this +parse_trait_impl_modifier_in_inherent_impl = inherent impls cannot be {$modifier_name} + .because = {$modifier_name} because of this .type = inherent impl for this type - .only_trait = only trait implementations may be annotated with {$annotation} + .note = only trait implementations may be annotated with `{$modifier}` parse_transpose_dyn_or_impl = `for<...>` expected after `{$kw}`, not before .suggestion = move `{$kw}` before the `for<...>` |
