]> git.lizzy.rs Git - rust.git/blob - tests/ui/neg_multiply.stderr
Merge remote-tracking branch 'upstream/beta' into backport_remerge
[rust.git] / tests / ui / neg_multiply.stderr
1 error: negation by multiplying with `-1`
2   --> $DIR/neg_multiply.rs:27:5
3    |
4 LL |     x * -1;
5    |     ^^^^^^
6    |
7    = note: `-D clippy::neg-multiply` implied by `-D warnings`
8
9 error: negation by multiplying with `-1`
10   --> $DIR/neg_multiply.rs:29:5
11    |
12 LL |     -1 * x;
13    |     ^^^^^^
14
15 error: aborting due to 2 previous errors
16