-
Notifications
You must be signed in to change notification settings - Fork 25
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
Shared Borrow @ 18:15 #11
Comments
Well I am new to Rust, so everything I write may be wrong :) The difference in code is the type of the |
I thought it was this. for the deref coercions, I wonder how the compiler did this? Could C compiler do this too? (so you do not have to deref a point?) |
This is something that also confuses me, and the answer seems to be how It confuses me that I'm new to Rust so I might be interpreting this wrong... |
The above code is the exact same as the below code (the difference is the final ampersand in greet).
Can you explain why this is not different? The first code would basically be a... double borrow?
The text was updated successfully, but these errors were encountered: