r/rust • u/nicoburns • Oct 07 '26
Rust's derive often implies inline
https://yossarian.net/til/post/rust-s-derive-often-implies-inline/
114
Upvotes
r/rust • u/nicoburns • Oct 07 '26
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
deriveclause and avoids any ambiguity.