-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Make anonymous traits only implementable in the same module that declared the type #3785
Comments
Fine by me. |
@pcwalton Is this still relevant? (do we even have anonymous traits?) |
Closing -- I don't think we have anonymous traits. |
Maybe it means anonymous implementations? |
@thestinger Maybe so; in that case, anon impls already have to be in the same crate that declared the type. Not sure whether tighting the restriction to "same module" improves anything? |
#15060 is an example of a problem caused by the current behaviour. |
…tion of `MyStruct` This fixes rust-lang#15060 and rust-lang#3785.
What it says. Resolve is hard otherwise.
The text was updated successfully, but these errors were encountered: