This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 62
confusing error message from clone! #597
Comments
The second one seems to tell you exactly what you did wrong there :) You need to rename the fields. The first should work as is in that regard, but you have to provide a closure and not an async block. So the error message could be improved a bit there. |
And for the first, I think the macro is failing to detect the missing "|whatever|" block. |
@GuillaumeGomez Is this fixed now with the latest change? |
Checking. |
The first test case now says "no rules expected the token `async`". The second says what it should. I'm adding a test case for the first just in case. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have tried to use the clone! macro with two use cases and I'm getting a confusing error message
test case 1
test case 2
In both cases I'm getting
Variables need to be valid identifiers, e.g. field accesses are not allowed as is, you must rename it!
which is a bit confusingThe text was updated successfully, but these errors were encountered: