]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/suspicious_arithmetic_impl.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / suspicious_arithmetic_impl.stderr
CommitLineData
f20569fa
XL
1error: suspicious use of binary operator in `Add` impl
2 --> $DIR/suspicious_arithmetic_impl.rs:13:20
3 |
4LL | Foo(self.0 - other.0)
5 | ^
6 |
7 = note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings`
8
9error: suspicious use of binary operator in `AddAssign` impl
10 --> $DIR/suspicious_arithmetic_impl.rs:19:23
11 |
12LL | *self = *self - other;
13 | ^
14 |
15 = note: `#[deny(clippy::suspicious_op_assign_impl)]` on by default
16
17error: suspicious use of binary operator in `MulAssign` impl
18 --> $DIR/suspicious_arithmetic_impl.rs:32:16
19 |
20LL | self.0 /= other.0;
21 | ^^
22
23error: suspicious use of binary operator in `Rem` impl
24 --> $DIR/suspicious_arithmetic_impl.rs:70:20
25 |
26LL | Foo(self.0 / other.0)
27 | ^
28
29error: suspicious use of binary operator in `BitAnd` impl
30 --> $DIR/suspicious_arithmetic_impl.rs:78:20
31 |
32LL | Foo(self.0 | other.0)
33 | ^
34
35error: suspicious use of binary operator in `BitOr` impl
36 --> $DIR/suspicious_arithmetic_impl.rs:86:20
37 |
38LL | Foo(self.0 ^ other.0)
39 | ^
40
41error: suspicious use of binary operator in `BitXor` impl
42 --> $DIR/suspicious_arithmetic_impl.rs:94:20
43 |
44LL | Foo(self.0 & other.0)
45 | ^
46
47error: suspicious use of binary operator in `Shl` impl
48 --> $DIR/suspicious_arithmetic_impl.rs:102:20
49 |
50LL | Foo(self.0 >> other.0)
51 | ^^
52
53error: suspicious use of binary operator in `Shr` impl
54 --> $DIR/suspicious_arithmetic_impl.rs:110:20
55 |
56LL | Foo(self.0 << other.0)
57 | ^^
58
59error: aborting due to 9 previous errors
60