mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
20 lines
387 B
Text
20 lines
387 B
Text
error: Negation by multiplying with -1
|
|
--> $DIR/neg_multiply.rs:30:5
|
|
|
|
|
30 | x * -1;
|
|
| ^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/neg_multiply.rs:4:9
|
|
|
|
|
4 | #![deny(neg_multiply)]
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: Negation by multiplying with -1
|
|
--> $DIR/neg_multiply.rs:33:5
|
|
|
|
|
33 | -1 * x;
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|