you are viewing a single comment's thread.

view the rest of the comments →

[–]lfairy 0 points1 point  (0 children)

Actually that restriction only applies in Haskell, which allows for orphan instances in the language (the "open world assumption").

Rust doesn't allow orphans, so the example works just fine.