1
Fork 0

Use structured suggestions for unconstrained generic parameters on impl blocks

This commit is contained in:
Oli Scherer 2024-07-19 14:21:30 +00:00
parent 3d68afc9e8
commit a0db06bdeb
3 changed files with 39 additions and 56 deletions

View file

@ -519,6 +519,11 @@ hir_analysis_typeof_reserved_keyword_used =
.suggestion = consider replacing `typeof(...)` with an actual type
.label = reserved keyword
hir_analysis_unconstrained_generic_parameter = the {$param_def_kind} `{$param_name}` is not constrained by the impl trait, self type, or predicates
.label = unconstrained {$param_def_kind}
.const_param_note = expressions using a const parameter must map each value to a distinct output value
.const_param_note2 = proving the result of expressions other than the parameter are unique is not supported
hir_analysis_unconstrained_opaque_type = unconstrained opaque type
.note = `{$name}` must be used in combination with a concrete type within the same {$what}