-
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
"call expression requires function" error points to wrong definition #80853
Comments
Relevant code: rust/compiler/rustc_typeck/src/check/callee.rs Lines 335 to 383 in ef58949
|
Would it be helpful if the compiler said |
@rustbot claim |
Perhaps, but the bug this issue is about is this:
It says " |
@camelid I've been working on this for a bit and don't really know how to approach it. Since the code is calling |
I thought about this a bit more and realized that my original suggestion of pointing to the definition of the struct
I am not super familiar with the type-checker, but I can try to help you with what knowledge I have. You can also ask on Zulip if you need more help. |
(Playground)
It should either point to the definition of
S
or it should say "thing
defined here":The text was updated successfully, but these errors were encountered: