-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Feature Request: Allow default implementations of static methods in derived traits. #3880
Comments
Note that a similar pattern using non-static methods works as expected:
(this compiles and runs) |
I think this is more a side-effect of the scoping rules for static fns, which promote them to the parent module. If you enclosed Shizzle and Shozzle in different modules, it ought to work (modulo bugs). Those scoping rules are in the process of changing. Therefore, I am going to close this bug. |
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Sep 17, 2024
add non-portable linux pthread initializers to layout sanity check Also, turns out we can enable all pthread tests on Solarish.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it would be great if this sort of thing worked:
Currently it fails with this error:
The text was updated successfully, but these errors were encountered: