mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-21 23:21:57 +00:00
033c99b1ba
For expressions that can be replaced by a zero.
20 lines
446 B
Text
20 lines
446 B
Text
error: the operation is ineffective. Consider reducing it to `0`
|
|
--> $DIR/erasing_op.rs:9:5
|
|
|
|
|
9 | x * 0;
|
|
| ^^^^^
|
|
|
|
|
= note: `-D erasing-op` implied by `-D warnings`
|
|
|
|
error: the operation is ineffective. Consider reducing it to `0`
|
|
--> $DIR/erasing_op.rs:10:5
|
|
|
|
|
10 | 0 & x;
|
|
| ^^^^^
|
|
|
|
error: the operation is ineffective. Consider reducing it to `0`
|
|
--> $DIR/erasing_op.rs:11:5
|
|
|
|
|
11 | 0 / x;
|
|
| ^^^^^
|
|
|