I've been working on a Rust project with a friend and I swear he's the best tester for compiler error messages. Today, when he wanted to add a generic type to an enum that already had a lifetime, he wrote:
enum Foo<'a><T> { ... }
The compiler was not ready for this case! 😂 /1
Conversation
yeah we could totally have used regular type generics, it just requires changing &'a T syntax and maybe a few other things here and there
2
3
Funny the more I delve into dependent types, the more the way rust’s generics ended up frustrates me… oh well 😅


