-
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
Type inference works incorrectly with HRTB and closures #50973
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to make an alias for a trait with HRTB. But it causes type (lifetime of the argument) mismatch when working with closures.
Weirdly, when I write the hint
_: &_
, which seems hint nothing about lifetimes, it works again.Here's the detail.
https://play.rust-lang.org/?gist=0fb0af047d432f2aa06782152661507a&version=nightly&mode=debug
The text was updated successfully, but these errors were encountered: