Skip to content

rustc: More helpful error message when using a struct type like a function #8502

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

Closed
wants to merge 1 commit into from

Conversation

catamorphism
Copy link
Contributor

r? anybody

Closes #6702

@catamorphism
Copy link
Contributor Author

I had to add an extra field to the resolve context so as not to print out duplicate errors, since now there's an extra call to resolve_path, which may print its own errors. r? @pcwalton

@catamorphism
Copy link
Contributor Author

Closing this PR, adding it to my rollup branch instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading error when incorrectly initializing a struct using Monster() instead of Monster{...}
3 participants