fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this operation will always return zero. This is likely not the intended outcome 2 --> $DIR/erasing_op.rs:35:5 3 | 4LL | x * 0; 5 | ^^^^^ 6 | 7 = note: `-D clippy::erasing-op` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::erasing_op)]` 9 10error: this operation will always return zero. This is likely not the intended outcome 11 --> $DIR/erasing_op.rs:38:5 12 | 13LL | 0 & x; 14 | ^^^^^ 15 16error: this operation will always return zero. This is likely not the intended outcome 17 --> $DIR/erasing_op.rs:40:5 18 | 19LL | 0 / x; 20 | ^^^^^ 21 22error: this operation will always return zero. This is likely not the intended outcome 23 --> $DIR/erasing_op.rs:43:5 24 | 25LL | 0 * Vec1 { x: 5 }; 26 | ^^^^^^^^^^^^^^^^^ 27 28error: this operation will always return zero. This is likely not the intended outcome 29 --> $DIR/erasing_op.rs:45:5 30 | 31LL | Vec1 { x: 5 } * 0; 32 | ^^^^^^^^^^^^^^^^^ 33 34error: aborting due to 5 previous errors 35