[E0308] one type is more general than the other: expected and found are reported as same #114849
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.
Code
Current output
Desired output
^^^^
) code doesn't point to faulty types.Rationale and extra context
No response
Other cases
I tried to add explicit lifetime
'inner
to method generic signature, and bound to bothf
arg andA
(https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b1ae4d1f31e235183b0bc164d8c777bf):But got another issue about
data
needed to outliveassert_all
function. Sounds like it's interpreted as a requirement thatdata
must outlivef
:Anything else?
No response
The text was updated successfully, but these errors were encountered: