We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
See #41078
Sorry, something went wrong.
Yeah, the compiler inferred some lifetime but not forall lifetime.
But it confused me that if I move the bound out of trait, like check2(), all of them work well.
check2()
Yes, I believe this is a duplicate of #41078. Thanks!
No branches or pull requests
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: