E310 uses weird terminology #36700
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
For context, the message is, in the case of a type parameter
T
missing a lifetime bound:The suggestion that follows (adding a lifetime bound to
T
) is fine, but I've just seen someone confused by the wording of the actual error message. Irrespective of any misconceptions or lack of knowledge that might have factored in that specific person's confusion, this message does seem to use very strange terminology. Types, as opposed to values, don't really live (it's occasionally convenient to make puns about this, but in this case it hurts), and it's not really a question of how long a value of typeT
lives but rather of lifetime parameters contained inT
. Also, "parameter type" looks odd — "type parameter" seems much more common.I'd suggest something like
The exact wording is just a straw man, I don't think it's optimal.
The text was updated successfully, but these errors were encountered: