Lifetime inference and Pin #54934
Labels
A-inference
Area: Type inference
A-typesystem
Area: The type system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
There appears to be some lifetime inference issue with how
Deref
is implemented forPin
, so that I get issues about how the pin does not live long in code that should clearly work. For example, this gives an error about how the pin does not live long enough:https://play.rust-lang.org/?gist=5749b0645d17308d62501924e618e49d&version=nightly&mode=debug&edition=2015
cc #49150
The text was updated successfully, but these errors were encountered: