I’m having issues explicitly defining my lifetime parameters. The un-annotated version compiles, found here: https://play.rust-lang.org/?gist=6e579bd7ce36e455a9a68cee56f27f4f&version=stable
My attempt at solving doesn’t compile, found here: https://play.rust-lang.org/?gist=df0f8d0d4dd92124a910babc0e676367&version=stable
Follow up attempt here: [playground]?gist=b3ef9cd768239f4ac40bbb5e76156eed&version=stable
!! I’m currently not allowed to post more than 2 links !!
But the second attempt fails with a different error, which i don’t understand. I figured
impl<'a,'b> is essentially the same as
Context: I’m building playground examples around compiler errors related to borrowing and lifetimes. My intention is to setup examples which explicitly fail. Afterwards updating the code and annotating why the failures occurred.
This specific playground example has kept me already busy for a few days. It feels like i still have a lot to understand…
Edited: cleanup newlines and spaces