-
Notifications
You must be signed in to change notification settings - Fork 13k
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
DST: trait objects should automatically implement the trait #19187
Comments
cc @nick29581 |
cc @nikomatsakis (last I heard he was starting to implement this) |
This seems perilous, especially around corner cases like |
@eddyb Can you elaborate? This was part of the motivation for the "object safety" RFC I mentioned, which should also guarantee that this can only be done in appropriate cases. |
I'm working on this, yes. |
This was implemented in #20341 |
This is a planned part of DST. Example from RFC:
should be permitted even if there is no explicit impl of
SomeTrait
for&SomeTrait
.The text was updated successfully, but these errors were encountered: