]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/suspicious_arithmetic_impl.stderr
Rollup merge of #99474 - aDotInTheVoid:rustdoc-json-noinline-test-cleanup, r=CraftSpider
[rust.git] / src / tools / clippy / tests / ui / suspicious_arithmetic_impl.stderr
1 error: suspicious use of `-` 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 `-` in `AddAssign` impl
10   --> $DIR/suspicious_arithmetic_impl.rs:19:23
11    |
12 LL |         *self = *self - other;
13    |                       ^
14    |
15    = note: `-D clippy::suspicious-op-assign-impl` implied by `-D warnings`
16
17 error: suspicious use of `/` 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 `/` 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 `|` 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 `^` 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 `&` 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 `>>` 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 `<<` 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