Infinite recursion in type resolution for unused type #134719
Labels
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Example:
As a short summary: I am implementing a trait for one struct to operate on anything that impls IntoIterator. In addition this trait "distributes" to elements in a pair. I then try and merge these two properties to construct
bad_matcher
. For context, this happens as a result of merging thegoogletest
andbevy_ecs
crates.I expected to see this happen: The test to compile.
Instead, this happened: Failed to compile due to infinite recursion of the
Res
type (which is completely unused).Meta
rustc --version --verbose
:This seems to be fixed with
-Znext-solver
.The text was updated successfully, but these errors were encountered: