Closed spernsteiner closed 1 year ago
struct Foo { ptr: *mut u8, } struct Bar { foo: *mut Foo, }
struct Foo gains a hypothetical lifetime argument to use on ptr. This means the foo field should get rewritten to something like foo: &'h1 Foo<'h2>, but instead it gets rewritten to foo: &'h1 Foo, which is missing the lifetime argument.
struct Foo
ptr
foo
foo: &'h1 Foo<'h2>
foo: &'h1 Foo
struct Foo
gains a hypothetical lifetime argument to use onptr
. This means thefoo
field should get rewritten to something likefoo: &'h1 Foo<'h2>
, but instead it gets rewritten tofoo: &'h1 Foo
, which is missing the lifetime argument.