-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add E0500 error explanation #33533
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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.