Closures with GATs produce obscure messages #102540
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-GATs
Area: Generic associated types (GATs)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=92487d2b295e1d57d3e2c86443c94c3c
The current output is:
It is difficult to understand what is going on in the output, and I am still not quite sure what the problem is. Returning
res.unwrap()
instead of theunwrap_or_else
line works fine, so the issue appears to be in the closure.I believe this issue is related to GATs.
The text was updated successfully, but these errors were encountered: