diff options
| author | lcnr <rust@lcnr.de> | 2025-04-11 12:04:48 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-04-11 15:18:30 +0200 |
| commit | 5d0048303c98ad5226cd84f2132d21be3c6171c0 (patch) | |
| tree | 41cafe64dce3dc64b3b3f6a589e021a5fc60b239 /compiler/rustc_trait_selection/messages.ftl | |
| parent | 83033838a3d1f6ae073c5e8855452e9d0a201eed (diff) | |
| download | rust-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.ftl | 4 |
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 } |
