about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/messages.ftl
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-04-11 12:04:48 +0200
committerlcnr <rust@lcnr.de>2025-04-11 15:18:30 +0200
commit5d0048303c98ad5226cd84f2132d21be3c6171c0 (patch)
tree41cafe64dce3dc64b3b3f6a589e021a5fc60b239 /compiler/rustc_trait_selection/messages.ftl
parent83033838a3d1f6ae073c5e8855452e9d0a201eed (diff)
downloadrust-5d0048303c98ad5226cd84f2132d21be3c6171c0.tar.gz
rust-5d0048303c98ad5226cd84f2132d21be3c6171c0.zip
`NonGenericOpaqueTypeParam::ty` to `arg`
Diffstat (limited to 'compiler/rustc_trait_selection/messages.ftl')
-rw-r--r--compiler/rustc_trait_selection/messages.ftl4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/messages.ftl b/compiler/rustc_trait_selection/messages.ftl
index 05bbb42fb7c..74e38f525c8 100644
--- a/compiler/rustc_trait_selection/messages.ftl
+++ b/compiler/rustc_trait_selection/messages.ftl
@@ -268,8 +268,8 @@ trait_selection_oc_type_compat = type not compatible with trait
 trait_selection_opaque_captures_lifetime = hidden type for `{$opaque_ty}` captures lifetime that does not appear in bounds
     .label = opaque type defined here
 trait_selection_opaque_type_non_generic_param =
-    expected generic {$kind} parameter, found `{$ty}`
-    .label = {STREQ($ty, "'static") ->
+    expected generic {$kind} parameter, found `{$arg}`
+    .label = {STREQ($arg, "'static") ->
         [true] cannot use static lifetime; use a bound lifetime instead or remove the lifetime parameter from the opaque type
         *[other] this generic parameter must be used with a generic {$kind} parameter
     }