Open
Description
There appears to be some lifetime inference issue with how Deref
is implemented for Pin
, 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:
fn foo<'a>(x: Pin<&'a i32>) -> &'a i32 {
&*x
}
cc #49150