-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
mut and & confusion #21832
Comments
|
Yes, but the compiler insists on the 'mut' in the step call. |
Yes, it is confusing... until you realize a
So yes, using |
Thanks. I've unconfused myself. |
Describe the bug
Attempt to compile this:
It generates a compiler error of:
Reproduction Steps
Attempt to compile the source of above
Expected Behavior
I expect it to compile
Current Behavior
Compiler error of: error: cannot assign to field
logger
: expected&Logger
, not `&&Logger'Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.6 66ea826
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: