We'd like to satisfy the borrowck somehow:
We don't know how to satisfy the borrowck somehow. How do we satisfy the borrowck somehow?
We'd like to satisfy the borrowck somehow:
We don't know how to satisfy the borrowck somehow. How do we satisfy the borrowck somehow?
down to 2 errors. how do you fix these?
That's an awful lot of code much commented out. It'll be easier to answer if you clarify your goals.
the commented code is purely tests (because we're testing this on the playground)
we just want this error to go away, and for the code to run:
it should just print some pointers we guess.
hmm, it seems Rust doesn't enable one to have a strict Self: 'dangling
bounds (i.e. "Self
strictly outlives 'dangling
"), when Self
has <'dangling>
itself. So we guess we kinda hit a wall.
It would've been easier for us to have seen that wall had others helped us with this, tho we're glad we tried (and got this far).
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.