Skip to content

Fix incorrect suggestion for undeclared hrtb lifetimes in where clauses. - #123122

Merged
bors merged 1 commit into
rust-lang:masterfrom
surechen:fix_122714
May 21, 2024
Merged

bors merged 1 commit into
rust-lang:masterfrom
surechen:fix_122714

Conversation

@surechen

Copy link
Copy Markdown
Contributor

For poly-trait-ref like for<'a> Trait<T> in T: for<'a> Trait<T> + 'b { }.
We should merge the hrtb lifetimes: existed for<'a> and suggestion for<'b> or will get err: [E0316] nested quantification of lifetimes

fixes #122714

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

6 participants