diff options
| author | lcnr <rust@lcnr.de> | 2025-04-01 23:34:00 +0200 | 
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-04-03 11:13:10 +0200 | 
| commit | 990201cb78a77ec0c148a880e6ab46bafa3468df (patch) | |
| tree | b022c760464855a607c1a657660ff33f5b1e6c37 /compiler/rustc_trait_selection/messages.ftl | |
| parent | abc838be131d0ac1be3ce8a694a6056473f89619 (diff) | |
| download | rust-990201cb78a77ec0c148a880e6ab46bafa3468df.tar.gz rust-990201cb78a77ec0c148a880e6ab46bafa3468df.zip | |
move `check_opaque_type_parameter_valid`
Diffstat (limited to 'compiler/rustc_trait_selection/messages.ftl')
| -rw-r--r-- | compiler/rustc_trait_selection/messages.ftl | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/compiler/rustc_trait_selection/messages.ftl b/compiler/rustc_trait_selection/messages.ftl index 4db9d9915b1..05bbb42fb7c 100644 --- a/compiler/rustc_trait_selection/messages.ftl +++ b/compiler/rustc_trait_selection/messages.ftl @@ -264,8 +264,15 @@ trait_selection_oc_no_diverge = `else` clause of `let...else` does not diverge trait_selection_oc_no_else = `if` may be missing an `else` clause trait_selection_oc_try_compat = `?` operator has incompatible types 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") -> + [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 + } trait_selection_outlives_bound = lifetime of the source pointer does not outlive lifetime bound of the object type trait_selection_outlives_content = lifetime of reference outlives lifetime of borrowed content... | 
