]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/erasing_op.stderr
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / tools / clippy / tests / ui / erasing_op.stderr
1 error: this operation will always return zero. This is likely not the intended outcome
2   --> $DIR/erasing_op.rs:37:5
3    |
4 LL |     x * 0;
5    |     ^^^^^
6    |
7    = note: `-D clippy::erasing-op` implied by `-D warnings`
8
9 error: this operation will always return zero. This is likely not the intended outcome
10   --> $DIR/erasing_op.rs:38:5
11    |
12 LL |     0 & x;
13    |     ^^^^^
14
15 error: this operation will always return zero. This is likely not the intended outcome
16   --> $DIR/erasing_op.rs:39:5
17    |
18 LL |     0 / x;
19    |     ^^^^^
20
21 error: this operation will always return zero. This is likely not the intended outcome
22   --> $DIR/erasing_op.rs:41:5
23    |
24 LL |     0 * Vec1 { x: 5 };
25    |     ^^^^^^^^^^^^^^^^^
26
27 error: this operation will always return zero. This is likely not the intended outcome
28   --> $DIR/erasing_op.rs:42:5
29    |
30 LL |     Vec1 { x: 5 } * 0;
31    |     ^^^^^^^^^^^^^^^^^
32
33 error: aborting due to 5 previous errors
34