Overflow evaluation when using a wrapper function #117883
Labels
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: that it would compile
Instead, this happened: error[E0275]: overflow evaluating the requirement
&AdditiveShare<_>: IntoIteratorB
Interestingly, commenting out the wrapper function does not result in a compilation error:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=887c6cfabce6e3eb64b561d278f28807
however, this does:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d3d7e05d015b3eb397eb8fe5b7433f6a
It might be related to #39959, however this code works when commenting out the wrapper function.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: