-
Notifications
You must be signed in to change notification settings - Fork 433
having a variable named 'args' in a function leads to weird error messages #827
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
Comments
We should make these hermetic or mangle the names to make it work. |
Do you happen to have a quick repro and the error message? |
I had a function whose header was basically this: #[juniper::graphql_object(Context = Context)] The errors were: error[E0277]: the type |
As you can see errors don't really point to "try renaming 'args'" as the solution. |
Again, as some other issues, this should be fixed once we desugar computed object fields as method call, not inline closure. |
I had a variable I'd named "args" in a function. It lead to a whole bunch of compile errors on an unrelated variable when the juniper::graphql_object macro was unpacked.
It would be nice to have an error message that detects reserved words in an argument list.
The text was updated successfully, but these errors were encountered: