summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/erasing_op.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/erasing_op.stderr')
-rw-r--r--src/tools/clippy/tests/ui/erasing_op.stderr9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/clippy/tests/ui/erasing_op.stderr b/src/tools/clippy/tests/ui/erasing_op.stderr
index 979412523..1b50a05cd 100644
--- a/src/tools/clippy/tests/ui/erasing_op.stderr
+++ b/src/tools/clippy/tests/ui/erasing_op.stderr
@@ -5,27 +5,28 @@ LL | x * 0;
| ^^^^^
|
= note: `-D clippy::erasing-op` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::erasing_op)]`
error: this operation will always return zero. This is likely not the intended outcome
- --> $DIR/erasing_op.rs:36:5
+ --> $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:37:5
+ --> $DIR/erasing_op.rs:40:5
|
LL | 0 / x;
| ^^^^^
error: this operation will always return zero. This is likely not the intended outcome
- --> $DIR/erasing_op.rs:39:5
+ --> $DIR/erasing_op.rs:43:5
|
LL | 0 * Vec1 { x: 5 };
| ^^^^^^^^^^^^^^^^^
error: this operation will always return zero. This is likely not the intended outcome
- --> $DIR/erasing_op.rs:40:5
+ --> $DIR/erasing_op.rs:45:5
|
LL | Vec1 { x: 5 } * 0;
| ^^^^^^^^^^^^^^^^^