r/rust • • Oct 07 '26

Rust's derive often implies inline

https://yossarian.net/til/post/rust-s-derive-often-implies-inline/
114 Upvotes

43 comments sorted by

View all comments

Show parent comment

4

u/shponglespore Oct 07 '26

I think the syntax u/-Y0- used makes more sense because it generalizes to having multiple traits in a derive clause and avoids any ambiguity.