Compilation fails with "overflow evaluating the requirement" when an unrelated impl for a reference is present #83181
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code:
Playground
Trying to compile it results in the following error:
If you comment out the
IntoIterator
impl or the call tofoobar
then it compiles successfully.Might be related to #80542, #78982 and possibly others.
Meta
Affected versions:
The text was updated successfully, but these errors were encountered: