TIL: rustc complains if you implement trait functions in a different order than in the trait declaration.

I've been writing rust code for *this* many years and I've never known that, because I've always naturally implemented the functions in declaration order. Except this one time. OCD for the win, I guess. 😋

· · Web · 1 · 0 · 0
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!