Skip to content
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

Merged
merged 1 commit into from
May 15, 2016
Merged

Add E0500 error explanation #33533

merged 1 commit into from
May 15, 2016

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented May 10, 2016

r? @Manishearth

Part of #32777.

let mut john_copy = john_snow.clone();
let nights_watch = || {
john_copy = 2;
};
Copy link

@manfredbrandl manfredbrandl May 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*john_copy = 2;
missing * ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks!

Copy link
Member Author

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.

@GuillaumeGomez
Copy link
Member Author

cc @steveklabnik

}
```

Or, if the type implements the `Clone` traits, you can clone it between
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trait, not traits

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented May 12, 2016

📌 Commit 7a9f4c2 has been approved by steveklabnik

eddyb added a commit to eddyb/rust that referenced this pull request May 12, 2016
bors added a commit that referenced this pull request May 12, 2016
eddyb added a commit to eddyb/rust that referenced this pull request May 13, 2016
sanxiyn added a commit to sanxiyn/rust that referenced this pull request May 14, 2016
bors added a commit that referenced this pull request May 14, 2016
Rollup of 15 pull requests

- Successful merges: #33342, #33393, #33415, #33475, #33517, #33533, #33534, #33565, #33580, #33590, #33591, #33598, #33603, #33604, #33605
- Failed merges: #33578
Manishearth added a commit to Manishearth/rust that referenced this pull request May 15, 2016
bors added a commit that referenced this pull request May 15, 2016
@bors bors merged commit 7a9f4c2 into rust-lang:master May 15, 2016
@GuillaumeGomez GuillaumeGomez deleted the add_E0500 branch May 15, 2016 22:30
bors added a commit that referenced this pull request May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants