"impl Trait" causes error: overflow evaluating the requirement impl Trait: std::marker::Freeze
#50674
Labels
A-trait-system
Area: Trait system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Code:
playground link
This code probably shouldn't compile, since it would probably need to instantiate infinitely many versions of the f function.
It currently doesn't compile as it should. However, it does produce the following error, which is very confusing:
I have no idea what
std::marker::Freeze
is, and it appearing in the error message will probably be confusing to other users as well. I'm not sure whether this will happen in actual code though.Most likely a reincarnation of #44349.
The text was updated successfully, but these errors were encountered: