Uh oh!
There was an error while loading. Please reload this page.
more evocative examples for Sub and SubAssign - #35876
Merged
Merged
Conversation
GuillaumeGomez
commented
Aug 22, 2016
Member
Travis says: ---- ops::SubAssign_0 stdout ----
error[E0368]: binary assignment operation `+=` cannot be applied to type`main::Point`
--><anon>:28:1
|
28 | point += Point { x: 2, y: 3 };| ^^^^^ cannot use `+=` on type`main::Point`
error: aborting due to previous error(s) |
matthew-piziak
commented
Aug 22, 2016
ContributorAuthor
Oops! Fixed. |
matthew-piziakforce-pushed
the
sub-examples
branch
from
August 22, 2016 21:18
ac49d2d to
1d7e2b4CompareThese examples are exactly analogous to those in PRs rust-lang#35709 and rust-lang#35806. I'll probably remove the `fn main` wrappers for `Add` and `Sub` once this is merged in. Part of rust-lang#29365. r? @steveklabnik
matthew-piziakforce-pushed
the
sub-examples
branch
from
August 22, 2016 21:20
1d7e2b4 to
eb6d44dCompareGuillaumeGomez
commented
Aug 22, 2016
Member
Waiting confirmation from travis and then r+. |
matthew-piziak
commented
Aug 23, 2016
ContributorAuthor
@GuillaumeGomez Travis is green. 🍏 :) |
GuillaumeGomez
commented
Aug 24, 2016
Member
Great, thanks! :) @bors: r+ rollup |
bors
commented
Aug 24, 2016
Collaborator
📌 Commit eb6d44d has been approved by |
sophiajt pushed a commit
to sophiajt/rust
that referenced
this pull request
Aug 24, 2016
…laumeGomez more evocative examples for `Sub` and `SubAssign` These examples are exactly analogous to those in PRs rust-lang#35709 and rust-lang#35806. I'll probably remove the `fn main` wrappers for `Add` and `Sub` once this is merged in. Part of rust-lang#29365. r? @steveklabnik
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These examples are exactly analogous to those in PRs #35709 and #35806. I'll probably remove the
fn mainwrappers forAddandSubonce this is merged in.Part of #29365.
r? @steveklabnik