summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/capture-mut-ref.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/capture-mut-ref.stderr')
-rw-r--r--tests/ui/nll/capture-mut-ref.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/nll/capture-mut-ref.stderr b/tests/ui/nll/capture-mut-ref.stderr
new file mode 100644
index 000000000..4898d5692
--- /dev/null
+++ b/tests/ui/nll/capture-mut-ref.stderr
@@ -0,0 +1,16 @@
+error: variable does not need to be mutable
+ --> $DIR/capture-mut-ref.rs:9:9
+ |
+LL | let mut x = &mut 0;
+ | ----^
+ | |
+ | help: remove this `mut`
+ |
+note: the lint level is defined here
+ --> $DIR/capture-mut-ref.rs:6:9
+ |
+LL | #![deny(unused_mut)]
+ | ^^^^^^^^^^
+
+error: aborting due to previous error
+