]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/suspicious_arithmetic_impl.stderr
Rollup merge of #67460 - estebank:named-lts, r=nikomatsakis
[rust.git] / src / tools / clippy / tests / ui / suspicious_arithmetic_impl.stderr
1 error: Suspicious use of binary operator in `Add` impl
2   --> $DIR/suspicious_arithmetic_impl.rs:11:20
3    |
4 LL |         Foo(self.0 - other.0)
5    |                    ^
6    |
7    = note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings`
8
9 error: Suspicious use of binary operator in `AddAssign` impl
10   --> $DIR/suspicious_arithmetic_impl.rs:17:23
11    |
12 LL |         *self = *self - other;
13    |                       ^
14    |
15    = note: `#[deny(clippy::suspicious_op_assign_impl)]` on by default
16
17 error: Suspicious use of binary operator in `MulAssign` impl
18   --> $DIR/suspicious_arithmetic_impl.rs:30:16
19    |
20 LL |         self.0 /= other.0;
21    |                ^^
22
23 error: aborting due to 3 previous errors
24