]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/assignment-operator-unimplemented.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / mismatched_types / assignment-operator-unimplemented.stderr
1 error[E0368]: binary assignment operation `+=` cannot be applied to type `Foo`
2   --> $DIR/assignment-operator-unimplemented.rs:6:3
3    |
4 LL |   a += *b;
5    |   -^^^^^^
6    |   |
7    |   cannot use `+=` on type `Foo`
8    |
9 note: an implementation of `AddAssign<_>` might be missing for `Foo`
10   --> $DIR/assignment-operator-unimplemented.rs:1:1
11    |
12 LL | struct Foo;
13    | ^^^^^^^^^^ must implement `AddAssign<_>`
14 note: the trait `AddAssign` must be implemented
15   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0368`.