]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: suspicious use of binary operator in `Add` impl |
2 | --> $DIR/suspicious_arithmetic_impl.rs:13: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:19: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:32:16 | |
19 | | | |
20 | LL | self.0 /= other.0; | |
21 | | ^^ | |
22 | ||
23 | error: suspicious use of binary operator in `Rem` impl | |
24 | --> $DIR/suspicious_arithmetic_impl.rs:70:20 | |
25 | | | |
26 | LL | Foo(self.0 / other.0) | |
27 | | ^ | |
28 | ||
29 | error: suspicious use of binary operator in `BitAnd` impl | |
30 | --> $DIR/suspicious_arithmetic_impl.rs:78:20 | |
31 | | | |
32 | LL | Foo(self.0 | other.0) | |
33 | | ^ | |
34 | ||
35 | error: suspicious use of binary operator in `BitOr` impl | |
36 | --> $DIR/suspicious_arithmetic_impl.rs:86:20 | |
37 | | | |
38 | LL | Foo(self.0 ^ other.0) | |
39 | | ^ | |
40 | ||
41 | error: suspicious use of binary operator in `BitXor` impl | |
42 | --> $DIR/suspicious_arithmetic_impl.rs:94:20 | |
43 | | | |
44 | LL | Foo(self.0 & other.0) | |
45 | | ^ | |
46 | ||
47 | error: suspicious use of binary operator in `Shl` impl | |
48 | --> $DIR/suspicious_arithmetic_impl.rs:102:20 | |
49 | | | |
50 | LL | Foo(self.0 >> other.0) | |
51 | | ^^ | |
52 | ||
53 | error: suspicious use of binary operator in `Shr` impl | |
54 | --> $DIR/suspicious_arithmetic_impl.rs:110:20 | |
55 | | | |
56 | LL | Foo(self.0 << other.0) | |
57 | | ^^ | |
58 | ||
59 | error: aborting due to 9 previous errors | |
60 |