Unclear introduction of 'static with APIT #88682
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-variance
Area: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the code:
The current output is:
It's not immediately clear from this error where the
'static
bound is introduced, especially when not as reduced. I only noticed that the'static
was probably being introduced by the APIT during reduction to file this issue.It would be helpful to have a note/hint on the argument of the function that introduces the 'static bound. (And, as a side note, I'm not even sure if the
'static
bound can be eliminated.)This was tested to be the output on 1.56.0-nightly (2021-09-01 50171c3).
The text was updated successfully, but these errors were encountered: