mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
34 lines
925 B
Text
34 lines
925 B
Text
error: this operation will always return zero. This is likely not the intended outcome
|
|
--> $DIR/erasing_op.rs:37:5
|
|
|
|
|
LL | x * 0;
|
|
| ^^^^^
|
|
|
|
|
= note: `-D clippy::erasing-op` implied by `-D warnings`
|
|
|
|
error: this operation will always return zero. This is likely not the intended outcome
|
|
--> $DIR/erasing_op.rs:38:5
|
|
|
|
|
LL | 0 & x;
|
|
| ^^^^^
|
|
|
|
error: this operation will always return zero. This is likely not the intended outcome
|
|
--> $DIR/erasing_op.rs:39:5
|
|
|
|
|
LL | 0 / x;
|
|
| ^^^^^
|
|
|
|
error: this operation will always return zero. This is likely not the intended outcome
|
|
--> $DIR/erasing_op.rs:41:5
|
|
|
|
|
LL | 0 * Vec1 { x: 5 };
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: this operation will always return zero. This is likely not the intended outcome
|
|
--> $DIR/erasing_op.rs:42:5
|
|
|
|
|
LL | Vec1 { x: 5 } * 0;
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|