You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test-trait-inheritance.rs:12:4: 12:23 error: duplicate definition of value shizzle
test-trait-inheritance.rs:12 static fn shizzle() {
^~~~~~~~~~~~~~~~~~~
test-trait-inheritance.rs:5:4: 5:23 note: first definition of value shizzle here:
test-trait-inheritance.rs:5 static fn shizzle();
^~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
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.
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: