summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/lint-unused-mut-variables.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/unused/lint-unused-mut-variables.stderr')
-rw-r--r--tests/ui/lint/unused/lint-unused-mut-variables.stderr10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ui/lint/unused/lint-unused-mut-variables.stderr b/tests/ui/lint/unused/lint-unused-mut-variables.stderr
index 805ed2b40..5f66c0315 100644
--- a/tests/ui/lint/unused/lint-unused-mut-variables.stderr
+++ b/tests/ui/lint/unused/lint-unused-mut-variables.stderr
@@ -218,5 +218,13 @@ note: the lint level is defined here
LL | #[deny(unused_mut)]
| ^^^^^^^^^^
-error: aborting due to previous error; 25 warnings emitted
+warning: variable does not need to be mutable
+ --> $DIR/lint-unused-mut-variables.rs:212:28
+ |
+LL | fn write_through_reference(mut arg: &mut Arg) {
+ | ----^^^
+ | |
+ | help: remove this `mut`
+
+error: aborting due to previous error; 26 warnings emitted