-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Unable to infer trait's type parameter when using static method of trait #3902
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
The problem is the error message. You should use |
Bumping to 0.7 |
Seems not critical for 0.7. Nominating for milestone 5, production-ready. |
accepted for production-ready milestone |
revisited for triage; nothing to add |
visiting for triage, email from 2013-09-02. Nothing to add beyond updating the test case's syntax (which I'm doing now). |
(#8888 is related, although that is about explicitly providing the Self type parameter, while this ticket is about inferring it.) |
assigning P-low. |
Triage bump. Doesn't seem super-critical as this can currently be done. I have run in to some (I think) related issues with the limits of type inference while implementing rust-plugin. |
Updated test case passes now, e-needstest. |
Note that this was compiling but in an unreliable way. There are still no constraints on |
The following should compile correctly AFAIK, but the type parameter isn't being properly inferred.
Updated Testcase
Original Outdated Testcase
Error
The text was updated successfully, but these errors were encountered: