Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding the orphan rule with an associated type #412

Open
tkaitchuck opened this issue Jul 30, 2024 · 0 comments
Open

Avoiding the orphan rule with an associated type #412

tkaitchuck opened this issue Jul 30, 2024 · 0 comments

Comments

@tkaitchuck
Copy link
Contributor

As mentioned here https://www.reddit.com/r/rust/comments/1efgisu/trait_definitions_to_avoid_orphan_rule/

It is possible to allow users to avoid the orphan rule when applied to one of your traits by adding an unused associated type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant