Lifetime error missing information about where 'static
bound is coming from
#91333
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: lifetime related
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (Playground Link):
The current output is:
Ideally the output should look like:
(Or some other way of pointing out that line 11 is why the 'static bound is needed).
This is a simplified version of the code from image-rs/image-png#315
The text was updated successfully, but these errors were encountered: