We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This doesn't work:
struct Foo { baz: uint } impl Foo { static fn bar() { Foo { baz: 0 }.bar(); } fn bar() { } }
and yields:
error: internal compiler error: calling transform_self_type_for_method on static method
The text was updated successfully, but these errors were encountered:
Same error message for:
trait Trait { static fn bar(); fn foo() { self.bar(); } }
Sorry, something went wrong.
There's still some ambivalence over whether this is a bug or a feature (see the comments on the pull request).
I closed the pull request, and would rather fix this by emitting an error.
This is a proper error message now. I'll add the test case along with my pile of other test cases to add. Closing.
No branches or pull requests
This doesn't work:
and yields:
The text was updated successfully, but these errors were encountered: