]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | error: suspicious use of `-` in `Add` impl |
e8be2606 | 2 | --> tests/ui/suspicious_arithmetic_impl.rs:14:20 |
f20569fa XL |
3 | | |
4 | LL | Foo(self.0 - other.0) | |
5 | | ^ | |
6 | | | |
7 | = note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::suspicious_arithmetic_impl)]` |
f20569fa | 9 | |
136023e0 | 10 | error: suspicious use of `-` in `AddAssign` impl |
e8be2606 | 11 | --> tests/ui/suspicious_arithmetic_impl.rs:22:23 |
f20569fa XL |
12 | | |
13 | LL | *self = *self - other; | |
14 | | ^ | |
15 | | | |
136023e0 | 16 | = note: `-D clippy::suspicious-op-assign-impl` implied by `-D warnings` |
781aab86 | 17 | = help: to override `-D warnings` add `#[allow(clippy::suspicious_op_assign_impl)]` |
f20569fa | 18 | |
136023e0 | 19 | error: suspicious use of `/` in `MulAssign` impl |
e8be2606 | 20 | --> tests/ui/suspicious_arithmetic_impl.rs:37:16 |
f20569fa XL |
21 | | |
22 | LL | self.0 /= other.0; | |
23 | | ^^ | |
24 | ||
136023e0 | 25 | error: suspicious use of `/` in `Rem` impl |
e8be2606 | 26 | --> tests/ui/suspicious_arithmetic_impl.rs:76:20 |
f20569fa XL |
27 | | |
28 | LL | Foo(self.0 / other.0) | |
29 | | ^ | |
30 | ||
136023e0 | 31 | error: suspicious use of `|` in `BitAnd` impl |
e8be2606 | 32 | --> tests/ui/suspicious_arithmetic_impl.rs:85:20 |
f20569fa XL |
33 | | |
34 | LL | Foo(self.0 | other.0) | |
35 | | ^ | |
36 | ||
136023e0 | 37 | error: suspicious use of `^` in `BitOr` impl |
e8be2606 | 38 | --> tests/ui/suspicious_arithmetic_impl.rs:94:20 |
f20569fa XL |
39 | | |
40 | LL | Foo(self.0 ^ other.0) | |
41 | | ^ | |
42 | ||
136023e0 | 43 | error: suspicious use of `&` in `BitXor` impl |
e8be2606 | 44 | --> tests/ui/suspicious_arithmetic_impl.rs:103:20 |
f20569fa XL |
45 | | |
46 | LL | Foo(self.0 & other.0) | |
47 | | ^ | |
48 | ||
136023e0 | 49 | error: suspicious use of `>>` in `Shl` impl |
e8be2606 | 50 | --> tests/ui/suspicious_arithmetic_impl.rs:112:20 |
f20569fa XL |
51 | | |
52 | LL | Foo(self.0 >> other.0) | |
53 | | ^^ | |
54 | ||
136023e0 | 55 | error: suspicious use of `<<` in `Shr` impl |
e8be2606 | 56 | --> tests/ui/suspicious_arithmetic_impl.rs:121:20 |
f20569fa XL |
57 | | |
58 | LL | Foo(self.0 << other.0) | |
59 | | ^^ | |
60 | ||
61 | error: aborting due to 9 previous errors | |
62 |