-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
By-value self methods on trait objects have bad error messages #9893
Comments
This would be difficult because the size of the type stored in the trait is unknown at compile-time. A by-value |
The bug is to improve the error message. |
Not 1.0 |
I don't think it is generally possible to codegen this. We should just give a better error msg. |
Updating title to no longer reflect that this is a bug in that it should work, but rather it is a bug in that it should have a better error message. |
I just realized that you can indeed write |
Closing in favor of #10672 |
If I have ownership of a trait object, I would expect to be able to call a by-value self method defined on the trait. For example:
currently yields the error of:
Nominating for the backcompat-lang 1.0 milestone.
The text was updated successfully, but these errors were encountered: