hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.7K
active users

Can any #Rust expert out there explain where is the syntax for this little challenge documented?

https://github.com/mainmatter/100-exercises-to-learn-rust/issues/245

(preferably with explanations about what the different lifetime annotations mean)

@buherator Ignoring your question for a second, I filed github.com/rust-lang/rust/issu to add more context to the error and error index entry corresponding to these cases. As the sister comment mentioned, lifetimes on associated items are new(er than The Book) so they are not as well introduced in the documentation.

@ekuber you are awesome, thank you! I'm sure your ticket will also help me better understand the situation.
@ekuber Wow, this would've made the exercise almost too easy! :D I wanted to make a comment about E207 but I see you already fixed that one too. My trust in the Rust community just increased a lot (not that I had any bad experiences so far)!