30+ duplicates on E0308 with expected and found being literally identical #112985
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
metabug
Issues about issues themselves ("bugs about bugs")
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hi! 👋
I was about to report a compiler diagnostics bug and then noticed that this things has 30+ duplicates here going back until January 2019 that are 99% open as of the moment, and not strongly interlinked. The pattern is this:
E0308
alsoThere is one concrete visual example with code further down.
After going through the first six pages of of matches for "one type is more general than the other" I stopped. Excluding unrelated ones, so far I found all of these as likely duplicates of this symptom:
T: Generator<ResumeTy>
is not satisfied #79648FnOnce
is not general enough" error #99492async fn
and return positionimpl Future
differs #109572async move
#110339rustc
prints the same type as found and expected for function item whose signature includes references #111497Should one of these become the master issue?
Before you mass-close all the others, please verify that they are actual duplicates and didn't just fool me to believe they are.
Thank you!
PS: For completeness, my very broken diagnostics output was this, verbose rustc version included:
And the related minimal reproducer code is this:
The text was updated successfully, but these errors were encountered: