-
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
Add E0500 error explanation #33533
Add E0500 error explanation #33533
Conversation
let mut john_copy = john_snow.clone(); | ||
let nights_watch = || { | ||
john_copy = 2; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*john_copy = 2;
missing * ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I answered too quickly: there is no need for the Deref use here.
} | ||
``` | ||
|
||
Or, if the type implements the `Clone` traits, you can clone it between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trait, not traits
@bors: r+ rollup |
📌 Commit 7a9f4c2 has been approved by |
…abnik Add E0500 error explanation r? @Manishearth Part of rust-lang#32777.
…abnik Add E0500 error explanation r? @Manishearth Part of rust-lang#32777.
…abnik Add E0500 error explanation r? @Manishearth Part of rust-lang#32777.
…abnik Add E0500 error explanation r? @Manishearth Part of rust-lang#32777.
r? @Manishearth
Part of #32777.