]> git.lizzy.rs Git - rust.git/blob - tests/ui/suspicious_arithmetic_impl.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / suspicious_arithmetic_impl.stderr
1 error: Suspicious use of binary operator in `Add` impl
2   --> $DIR/suspicious_arithmetic_impl.rs:14:20
3    |
4 14 |         Foo(self.0 - other.0)
5    |                    ^
6    |
7    = note: `-D suspicious-arithmetic-impl` implied by `-D warnings`
8
9 error: Suspicious use of binary operator in `AddAssign` impl
10   --> $DIR/suspicious_arithmetic_impl.rs:20:23
11    |
12 20 |         *self = *self - other;
13    |                       ^
14    |
15    = note: #[deny(suspicious_op_assign_impl)] on by default
16
17 error: aborting due to 2 previous errors
18