Use structured suggestions for unconstrained generic parameters on impl blocks
This commit is contained in:
parent
3d68afc9e8
commit
a0db06bdeb
3 changed files with 39 additions and 56 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue