]> git.lizzy.rs Git - rust.git/blob - tests/ui/erasing_op.stderr
Add erasing_op lint
[rust.git] / tests / ui / erasing_op.stderr
1 error: the operation is ineffective. Consider reducing it to `0`
2  --> $DIR/erasing_op.rs:9:5
3   |
4 9 |     x * 0;
5   |     ^^^^^
6   |
7   = note: `-D erasing-op` implied by `-D warnings`
8
9 error: the operation is ineffective. Consider reducing it to `0`
10   --> $DIR/erasing_op.rs:10:5
11    |
12 10 |     0 & x;
13    |     ^^^^^
14
15 error: the operation is ineffective. Consider reducing it to `0`
16   --> $DIR/erasing_op.rs:11:5
17    |
18 11 |     0 / x;
19    |     ^^^^^
20