-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
closure compilation fails depending on type inference #64373
Comments
I've definitely seen this reported in another issue before, but can't seem to find it |
Dupe of #41078 This is a consequence of the fact that a closure is only given higher-ranked trait bound (HRTB) lifetimes if the presence of these lifetimes in its signature can be seen at the time the closure is type-checked. Note that the full
On hearing this you might wonder why you've never had a similar problem with things like |
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: