Rust lifetime in generic traits

This is probably not new topic, I did read Rust tech doc on the topic but still couldn’t make my code to work. I’m just playing with the code and trying to get used to the language. So I have the following:

why I’m receiving expected lifetime parameter for both traits in method declaration? I’m highly appreciate your input. I love Rust!

You should write T: Namer<'a> + BirthYear<'a> + 'a instead of T: Namer + BirthYear + 'a.

Also, this forum is for internal development; your mean response time will probably be lower if you ask questions at

Thank you so much!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.