Unclear lifetime error from GAT and HRTB interaction #105507
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3d9d42dd1968a2f14a49b84c6a39300c
The current output is:
Ideally the output would somehow point out that part of the cause is the
for <'a>
clause essentially leading to aT: 'static
requirement.When I encountered this error, the relevant
for<'a>
and GAT trait implementation were not nearby so it was very difficult to tell what the issue was.The text was updated successfully, but these errors were encountered: